[html5] r7239 - [giow] (3) Make <script/> in SVG in text/html execute. Fixing https://www.w3.org [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Aug 9 16:40:07 PDT 2012


Author: ianh
Date: 2012-08-09 16:40:05 -0700 (Thu, 09 Aug 2012)
New Revision: 7239

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Make <script/> in SVG in text/html execute.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17995
Affected topics: HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2012-08-09 23:03:05 UTC (rev 7238)
+++ complete.html	2012-08-09 23:40:05 UTC (rev 7239)
@@ -94689,13 +94689,32 @@
     <p><a href=#insert-a-foreign-element>Insert a foreign element</a> for the token, in the
     same namespace as the <a href=#current-node>current node</a>.</p>
 
-    <p>If the token has its <i>self-closing flag</i> set, pop the
-    <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
-    elements</a> and <a href=#acknowledge-self-closing-flag title="acknowledge self-closing
-    flag">acknowledge the token's <i>self-closing flag</i></a>.</p>
+    <p>If the token has its <i>self-closing flag</i> set, then run the
+    appropriate steps from the following list:</p>
 
-   </dd>
+    <dl class=switch><dt>If the token's tag name is "script"</dt>
 
+     <dd>
+
+      <p><a href=#acknowledge-self-closing-flag title="acknowledge self-closing flag">Acknowledge the
+      token's <i>self-closing flag</i></a>, and then act as if an
+      end tag with the tag name "script" had been seen.</p>
+
+     </dd>
+
+     <dt>Otherwise</dt>
+
+     <dd>
+
+      <p>Pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
+      elements</a> and <a href=#acknowledge-self-closing-flag title="acknowledge self-closing
+      flag">acknowledge the token's <i>self-closing
+      flag</i></a>.</p>
+
+     </dd>
+
+    </dl></dd>
+
    <dt id=scriptForeignEndTag>An end tag whose tag name is "script", if the <a href=#current-node>current node</a> is a <code title="">script</code> element in the <a href=#svg-namespace>SVG namespace</a></dt>
    <dd>
 

Modified: index
===================================================================
--- index	2012-08-09 23:03:05 UTC (rev 7238)
+++ index	2012-08-09 23:40:05 UTC (rev 7239)
@@ -94689,13 +94689,32 @@
     <p><a href=#insert-a-foreign-element>Insert a foreign element</a> for the token, in the
     same namespace as the <a href=#current-node>current node</a>.</p>
 
-    <p>If the token has its <i>self-closing flag</i> set, pop the
-    <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
-    elements</a> and <a href=#acknowledge-self-closing-flag title="acknowledge self-closing
-    flag">acknowledge the token's <i>self-closing flag</i></a>.</p>
+    <p>If the token has its <i>self-closing flag</i> set, then run the
+    appropriate steps from the following list:</p>
 
-   </dd>
+    <dl class=switch><dt>If the token's tag name is "script"</dt>
 
+     <dd>
+
+      <p><a href=#acknowledge-self-closing-flag title="acknowledge self-closing flag">Acknowledge the
+      token's <i>self-closing flag</i></a>, and then act as if an
+      end tag with the tag name "script" had been seen.</p>
+
+     </dd>
+
+     <dt>Otherwise</dt>
+
+     <dd>
+
+      <p>Pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
+      elements</a> and <a href=#acknowledge-self-closing-flag title="acknowledge self-closing
+      flag">acknowledge the token's <i>self-closing
+      flag</i></a>.</p>
+
+     </dd>
+
+    </dl></dd>
+
    <dt id=scriptForeignEndTag>An end tag whose tag name is "script", if the <a href=#current-node>current node</a> is a <code title="">script</code> element in the <a href=#svg-namespace>SVG namespace</a></dt>
    <dd>
 

Modified: source
===================================================================
--- source	2012-08-09 23:03:05 UTC (rev 7238)
+++ source	2012-08-09 23:40:05 UTC (rev 7239)
@@ -109827,11 +109827,34 @@
     <p><span>Insert a foreign element</span> for the token, in the
     same namespace as the <span>current node</span>.</p>
 
-    <p>If the token has its <i>self-closing flag</i> set, pop the
-    <span>current node</span> off the <span>stack of open
-    elements</span> and <span title="acknowledge self-closing
-    flag">acknowledge the token's <i>self-closing flag</i></span>.</p>
+    <p>If the token has its <i>self-closing flag</i> set, then run the
+    appropriate steps from the following list:</p>
 
+    <dl class="switch">
+
+     <dt>If the token's tag name is "script"</dt>
+
+     <dd>
+
+      <p><span title="acknowledge self-closing flag">Acknowledge the
+      token's <i>self-closing flag</i></span>, and then act as if an
+      end tag with the tag name "script" had been seen.</p>
+
+     </dd>
+
+     <dt>Otherwise</dt>
+
+     <dd>
+
+      <p>Pop the <span>current node</span> off the <span>stack of open
+      elements</span> and <span title="acknowledge self-closing
+      flag">acknowledge the token's <i>self-closing
+      flag</i></span>.</p>
+
+     </dd>
+
+    </dl>
+
    </dd>
 
    <dt id="scriptForeignEndTag">An end tag whose tag name is "script", if the <span>current node</span> is a <code title="">script</code> element in the <span>SVG namespace</span></dt>




More information about the Commit-Watchers mailing list