Skip to content
Permalink
Browse files

[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

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 e02fe5dbc333192511a49805544327fd6727c72f
Showing with 75 additions and 14 deletions.
  1. +24 −5 complete.html
  2. +24 −5 index
  3. +27 −4 source
<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>
29 index
<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>
31 source
<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>

0 comments on commit e02fe5d

Please sign in to comment.
You can’t perform that action at this time.