Closed Bug 192283 Opened 22 years ago Closed 22 years ago

document.getElementById returns nothing on <object> tag when called before body.onload

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ashshbhatt, Assigned: jst)

References

()

Details

(Keywords: qawanted)

Tested on 20030207

document.getElementById() does not return anything when called before
body.onload()  for <object> tag
forgot to mention it works in IE
slip.mcom.com not found where I'm sitting... care to attach a test case?
Assigning to reporter to attach a usable testcase...
Assignee: jst → ashishbhatt
Keywords: qawanted
From looking at the testcase, it places an object tag in the head element,
immediately followed by a script element. This is of course invalid HTML, and my
guess is that the parser holds on to the object tag until it sees the start of
the body, and then hands it to the DOM code... Does this work if you place the
object tag and the script tag in the beginning of the body tag in stead of
inside the head tag? If so, then I say this is WONTFIX.
Blocks: 190852
Johnny, can you talk to Ashish and please figure out if this indeed 'wontfix'
material?  Thanks.
Assignee: ashishbhatt → jst
WONTFIX.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WONTFIX
Component: DOM: Core → DOM: Core & HTML
QA Contact: desale → general
You need to log in before you can comment on or make changes to this bug.