This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16231 - <svg><script xlink:href="x"/></svg> doesn't run the script per spec
Summary: <svg><script xlink:href="x"/></svg> doesn't run the script per spec
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-05 13:21 UTC by contributor
Modified: 2012-09-14 05:10 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2012-03-05 13:21:24 UTC
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
Comment 1 Anne 2012-03-05 13:45:29 UTC
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.
Comment 2 Nicholas Stimpson 2012-03-06 21:58:05 UTC
(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.
Comment 3 Nicholas Stimpson 2012-03-06 22:06:06 UTC
(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.
Comment 4 Simon Pieters 2012-03-07 09:05:17 UTC
The SVG case is interesting. I think that's a spec bug.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1363
Comment 5 contributor 2012-07-18 07:31:10 UTC
This bug was cloned to create bug 17995 as part of operation convergence.
Comment 6 Silvia Pfeiffer 2012-09-14 05:10:49 UTC
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