W3C home > Mailing lists > Public > public-html@w3.org > April 2008

Re: "/>" (was Re: several messages about New Vocabularies in text/html

From: Henri Sivonen <hsivonen@iki.fi>
Date: Thu, 3 Apr 2008 18:17:51 +0300
Cc: HTML WG <public-html@w3.org>, Public MathML mailing list <www-math@w3.org>
Message-Id: <64465A6E-F37F-4E0C-97C5-4F0BB67F0A81@iki.fi>
To: Neil Soiffer <Neils@dessci.com>

On Apr 3, 2008, at 18:03, Neil Soiffer wrote:
> However, I found that both Opera 9.5beta and Firefox 2 both treated  
> <script/> as an empty tag, which differs from what you found.  I'm  
> puzzled why I found a different behavior in Opera, and why Firefox 2  
> would differ from FireFox 3.

It seems to me that Opera 9.5 beta did not treat <script/> as empty.  
Instead, when it hit EOF when parsing the script element contents, it  
didn't append a the contents as a text node to the script element and  
then proceeded to infer a body start upon EOF.

You can verify that Opera 9.5 beta normally shows the text child of  
script in the DOM:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0D%0A%3Cscript%2F%3E%0D%0A%20w(%22Dangerous%22)%3B%0D%0A%3C%2Fscript%3E%0D%0A%3Cbody%3EA

You can also verify that the body element is inferred and not created  
by what looks like the tag:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0D%0A%3Cscript%2F%3E%0D%0A%20w(%22Dangerous%22)%3B%0D%0A%3Cbody%20class%3D%22foo%22%3EA

I think the Firefox case is this:
https://bugzilla.mozilla.org/show_bug.cgi?id=305873

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Thursday, 3 April 2008 15:18:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:54 UTC