Skip to content

Commit

Permalink
[giow] (3) Make <script/> in SVG in text/html execute.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17995
Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@7239 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 9, 2012
1 parent 1652c20 commit e02fe5d
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 14 deletions.
29 changes: 24 additions & 5 deletions complete.html
Expand Up @@ -94689,12 +94689,31 @@ <h6 id=parsing-main-inselect><span class=secno>12.2.5.4.16 </span>The "<dfn titl
<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>
Expand Down
29 changes: 24 additions & 5 deletions index
Expand Up @@ -94689,12 +94689,31 @@ document.body.appendChild(text);
<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>
Expand Down
31 changes: 27 additions & 4 deletions source
Expand Up @@ -109827,10 +109827,33 @@ document.body.appendChild(text);
<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>

Expand Down

0 comments on commit e02fe5d

Please sign in to comment.