Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 cc7dd25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions complete.html
Expand Up @@ -52162,8 +52162,7 @@ <h5 id=restrictions-for-contents-of-script-elements><span class=secno>4.12.1.2 <
<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 -->
Expand Down
3 changes: 1 addition & 2 deletions index
Expand Up @@ -52162,8 +52162,7 @@ o............A....e
<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 -->
Expand Down
3 changes: 1 addition & 2 deletions source
Expand Up @@ -57629,8 +57629,7 @@ o............A....e
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 -->
Expand Down

0 comments on commit cc7dd25

Please sign in to comment.