Skip to content
Permalink
Browse files

[c] (2) Remove the parts of the script content model that could lead …

…to unbalanced crazy

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23590
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8299 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Nov 19, 2013
1 parent 77956c2 commit cc7dd2506b5efa4c73955d622bbcde35559eccfe
Showing with 3 additions and 6 deletions.
  1. +1 −2 complete.html
  2. +1 −2 index
  3. +1 −2 source
<p>The <code><a href=#textcontent>textContent</a></code> of a <code><a href=#the-script-element>script</a></code> element must match the <code title="">script</code> production in the following ABNF, the character set for which is Unicode.
<a href=#refsABNF>[ABNF]</a></p>

<pre>script = data1 *( escape [ script-start data3 ] "--&gt;" data1 ) [ escape ]
escape = "&lt;!--" data2 *( script-start data3 script-end data2 )
<pre>script = data1 *( "&lt;!--" data2 *( script-start data3 script-end data2 ) "--&gt;" data1 )

data1 = &lt; any string that doesn't contain a substring that matches not-data1 &gt;
not-data1 = <!-- script-end / -->"&lt;!--" <!-- the script-end is redundant here since it would close the element -->
3 index
<p>The <code><a href=#textcontent>textContent</a></code> of a <code><a href=#the-script-element>script</a></code> element must match the <code title="">script</code> production in the following ABNF, the character set for which is Unicode.
<a href=#refsABNF>[ABNF]</a></p>

<pre>script = data1 *( escape [ script-start data3 ] "--&gt;" data1 ) [ escape ]
escape = "&lt;!--" data2 *( script-start data3 script-end data2 )
<pre>script = data1 *( "&lt;!--" data2 *( script-start data3 script-end data2 ) "--&gt;" data1 )

data1 = &lt; any string that doesn't contain a substring that matches not-data1 &gt;
not-data1 = <!-- script-end / -->"&lt;!--" <!-- the script-end is redundant here since it would close the element -->
3 source
data-x="">script</code> production in the following ABNF, the character set for which is Unicode.
<a href="#refsABNF">[ABNF]</a></p>

<pre>script = data1 *( escape [ script-start data3 ] "-->" data1 ) [ escape ]
escape = "&lt;!--" data2 *( script-start data3 script-end data2 )
<pre>script = data1 *( "&lt;!--" data2 *( script-start data3 script-end data2 ) "-->" data1 )

data1 = &lt; any string that doesn't contain a substring that matches not-data1 >
not-data1 = <!-- script-end / -->"&lt;!--" <!-- the script-end is redundant here since it would close the element -->

0 comments on commit cc7dd25

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