Closed Bug 27014 Opened 26 years ago Closed 26 years ago

main.font_sizes has no properties

Categories

(Core :: DOM: CSS Object Model, defect, P3)

Other
Other
defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: jgmyers, Assigned: vidur)

References

()

Details

The following snippet of javascript code generates the error JavaScript Error: TypeError: main.font_sizes has no properties URL: http://vadar.mcom.com/frame.html LineNo: 42 i = main.font_base + main.font_delta document.write('<style type="text/css">\n' + '#folderList { font-size:' + main.font_sizes[i - (NN > 3 || parent.mac ? 0 : 1)] + ' }\n' + 'BODY TABLE { font-family: ' + main.cfg['meFontFace'] + '; font-size:' + main.font_sizes[i] + ' }\n</style>\n') } To test, go to http://vadar.mcom.com, then log in using userid "x" password "x"
Blocks: 8310
This is a 4.x product parity issue. I have no idea what DOM level this is, I just guessed.
Keywords: 4xp
The problem seems to stem from the fact that the script http://vadar.mcom.com/main.js tries to define a function called toolbar(). The names clashes with the builtin toolbar property on window and we bail out of the script. I'd suggest changing the name of the function to fix the script. I'm not sure why 4.x was more permissive about this.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
Are you sure this isn't a scoping bug? Is there some spec which defines what the scope of the implied "with(window)" is?
Mass update of qa contact
QA Contact: gerardok → janc
Component: DOM Level 1 → DOM Style
Taking QA Contact on all open or unverified DOM Style bugs...
QA Contact: janc → ian
VERIFIED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.