Skip to content

Commit

Permalink
[cot] (2) Make entities not get parsed between 'comments' in RCDATA e…
Browse files Browse the repository at this point in the history
…lements.

git-svn-id: http://svn.whatwg.org/webapps@1294 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 2, 2008
1 parent 400c1bc commit 8319403
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -37796,9 +37796,7 @@ function receiver(e) {
title=syntax-escape>escaping text span</a>.

<p>An <dfn id=escaping title=syntax-escape>escaping text span</dfn> is a
span of <a href="#text1" title=syntax-text>text</a> (in CDATA and RCDATA
elements) and <a href="#character2" title=syntax-entities>character entity
references</a> (in RCDATA elements) that starts with an <a
span of <a href="#text1" title=syntax-text>text</a> that starts with an <a
href="#escaping0" title=syntax-escape-start>escaping text span start</a>
that is not itself in an <a href="#escaping" title=syntax-escape>escaping
text span</a>, and ends at the next <a href="#escaping1"
Expand Down Expand Up @@ -38662,8 +38660,8 @@ function receiver(e) {
<dt>U+0026 AMPERSAND (&amp;)

<dd>When the <a href="#content2">content model flag</a> is set to one of
the PCDATA or RCDATA states: switch to the <a href="#entity">entity
data state</a>.
the PCDATA or RCDATA states and the <a href="#escape">escape flag</a>
is false: switch to the <a href="#entity">entity data state</a>.

<dd>Otherwise: treat it as per the "anything else" entry below.

Expand Down
8 changes: 3 additions & 5 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -35301,9 +35301,7 @@ function receiver(e) {
span</span>.</p>

<p>An <dfn title="syntax-escape">escaping text span</dfn> is a span
of <span title="syntax-text">text</span> (in CDATA and RCDATA
elements) and <span title="syntax-entities">character entity
references</span> (in RCDATA elements) that starts with an <span
of <span title="syntax-text">text</span> that starts with an <span
title="syntax-escape-start">escaping text span start</span> that is
not itself in an <span title="syntax-escape">escaping text
span</span>, and ends at the next <span
Expand Down Expand Up @@ -36227,8 +36225,8 @@ function receiver(e) {

<dt>U+0026 AMPERSAND (&amp;)</dt>
<dd>When the <span>content model flag</span> is set to one of the
PCDATA or RCDATA states: switch to the <span>entity data
state</span>.</dd>
PCDATA or RCDATA states and the <span>escape flag</span> is
false: switch to the <span>entity data state</span>.</dd>
<dd>Otherwise: treat it as per the "anything else" entry below.</dd>

<dt>U+002D HYPHEN-MINUS (-)</dt>
Expand Down

0 comments on commit 8319403

Please sign in to comment.