- From: Henri Sivonen <hsivonen@iki.fi>
- Date: Thu, 3 Apr 2008 18:17:51 +0300
- To: Neil Soiffer <Neils@dessci.com>
- Cc: HTML WG <public-html@w3.org>, Public MathML mailing list <www-math@w3.org>
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