This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://dev.w3.org/html5/spec/ Multipage: http://www.whatwg.org/C#top Complete: http://www.whatwg.org/c#top Comment: Why do I have to end the script tag when loading a script from an external resource? I have to do: <script src="foo.js"></script> I think it should be enough to do: <script src="foo.js" /> Posted from: 212.247.162.243 User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, 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>. Status: Rejected Change Description: no spec change Rationale: Proposed change breaks backwards compatibility and breaks compatibility with content such as <script/>alert("aliens")</script> which unfortunately exists.
(In reply to comment #1) What about in foreign content? The spec says <script/> closes the element but doesn't run the script. Chrome does that, but Firefox closes the element and runs the script.
(In reply to comment #2) Clarifications: (a) I'm not the original bug raiser. (b) I'm talking about the svg script element of course.
The SVG case is interesting. I think that's a spec bug. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1363
This bug was cloned to create bug 17995 as part of operation convergence.
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, 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 Status: Accepted Change Description: https://github.com/w3c/html/commit/46f734b8e80d46c67c585d441be7e0839fdcfef3 Rationale: accepted WHATWG fix