This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Both Presto and WebKit currently handle a self-closing flag on a <script> element start tag in a special way. In WebKit it always pops the element of the stack. In Presto it pops the element of the stack if a src attribute with a non-empty value is also present. Gecko and Trident do not handle the flag in a special way. WebKit style parsing breaks at least this page: http://www.google.com/codesearch/p?hl=en#fYNO89zotsk/sahana-phase1/damagereg/web/Login.jsp&q=%3Cscript[^%3E]*/%3E It is unfortunately near impossible for Opera and WebKit to change behavior drastically due to deployed Dashboard and Opera widgets. (Introducing differences between Web page and widget rendering would be theoretically possible (and admittedly WebKit has done this for <canvas>), but is not desirable.) I would like to do more research into what pages would break and which would work better, but unfortunately Philips' tool cannot be used.
I'm not changing the spec just because certain UAs reuse the same codebase for non-Web environments, that doesn't make sense. Especially since, as you point out, it causes problems.
http://www.madaen.com/ breaks in Firefox (and probably IE?). I haven't found a site yet that breaks in Opera due to this issue and some sites using code like this would work "better": <script src='http://www.google-analytics.com/urchin.js' type='text/javascript'/> <script type='text/javascript'> _uacct = 'UA-1723287-3'; urchinTracker(); </script> E.g. http://discotec08.ifi.uio.no/FMOODS08/HomePage and http://yskin.net/
This bug predates the HTML Working Group Decision Policy. If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.