DESCRIPTION: You seem to be putting any whitespace that occurs before the beginning of the body element into the beginning of the body element. This causes body.firstChild to incorrectly be an [object Text] when the body start tag is immediately followed by a start tag for another element. STEPS TO REPRODUCE: Load attached test case (possibly twice due to some script bugs these days). Look in the text window for output from dump(). ACTUAL RESULTS: [object Text] EXPECTED RESULTS: [object HTMLParagraphElement] DOES NOT WORK CORRECTLY ON: * Linux, viewer, 1999-08-30-01-M10 ADDITIONAL INFORMATION: I will attach a second test case with no whitespace before the beginning of the body element that does give the desired results, and shows that whitespace before the beginning of body is the culprit. I don't know how hard this is to fix while maintaining backward compatibility, but in theory you should handle correct documents correctly.
Created attachment 1497 [details] test case giving desired results by removing whitespace before <body>
Moving all non-DOM, non-crash bugs to M15.
See bug 13688.
I will check (sometime) to see if this is fixed, and, if it is, mark it a duplicate of bug 13688.
Stealing this one.
This appears to have been fixed by earlier improvements to the parsing engine that deal with how ws/nl sequences before the body are treated.
Mass update of qa contact
QA contact Update
Updating QA contact to Shivakiran Tummala.