Open
Bug 613273
Opened 14 years ago
Updated 2 years ago
NodeList constructor is Object, while for example body-element has HTMLBodyElement
Categories
(Firefox :: General, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: rikmeijer, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7 Build Identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7 De NodeList constructor seems to be inconsistent with other objects constructors. When I try to extract the contructor its name from a NodeList it returns Object, while in other cases (for example String or the BODY-element) correctly returns String or HTMLBodyElement repectively. Reproducible: Always Steps to Reproduce: 1. Paste supplied HTML into a test file 2. Open file in FF4 3. See results in Firebug console Actual Results: Firebug console: Object() HTMLBodyElement {} Expected Results: Firebug console: NodeList {} HTMLBodyElement {} <!doctype html> <html> <head> <title>NodeList test</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> </body> <script type="text/javascript"> console.log(window.document.getElementsByTagName('body').constructor); console.log(window.document.getElementsByTagName('body')[0].constructor); </script> </html>
Comment 1•13 years ago
|
||
Are you still seeing this with Firefox 4 final?
Version: unspecified → 4.0 Branch
Reporter | ||
Comment 2•13 years ago
|
||
Yes, the problem can still be reproduced using supplied HTML in FF 4.0.1
Comment 3•13 years ago
|
||
This bug was reported using a pre-release version of Firefox 4. Now that Firefox 4.0.1 final has been released, can you please update and retest your bug? A fresh profile would be a good starting place to test, http://support.mozilla.com/kb/Managing+profiles. If you continue to see the issue, can you please update this bug with your results? Filter: firefox4prebugsunco
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•