W3C home > Mailing lists > Public > www-archive@w3.org > January 2008

Acid3: parsing quirk

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 25 Jan 2008 23:24:35 +0100
To: "Ian Hickson" <ian@hixie.ch>
Cc: www-archive@w3.org
Message-ID: <op.t5ia69kp64w2qv@annevk-t60.oslo.opera.com>

http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!doctype%20html%3E%3Cspan%3E%3C%2Fspan%3E%3Cscript%3Ew(document.getElementsByTagName(%27span%27).length%20%3D%3D%201)%3C%2Fscript%3E

If there are no explicit <body> and <head> tags and no text nodes have  
appeared yet at least Firefox does some weird re-ordering of nodes which  
causes scripts to return different things. I think that from HTML 4 you  
can reasonably say that this behavior is incorrect.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Friday, 25 January 2008 22:20:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:18:12 GMT