Skip to content

Commit 63b615d

Browse files
committed
I apparently didn't test the behavior of an escaped EOF in a string. There's no real interop, but wk and ff both treat it as bad-string, so let's match them.
--HG-- extra : rebase_source : 6916bfd46b858cd9dbeb1805fa202a2a445666f1
1 parent 6c7e959 commit 63b615d

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

css3-syntax/Overview.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
<h1>CSS Syntax Module Level 3</h1>
3838

39-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 12 June 2012</h2>
39+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 13 June 2012</h2>
4040

4141
<dl>
4242
<dt>This version:
@@ -920,9 +920,8 @@ <h4 id=double-quote-string-state><span class=secno>3.4.4. </span> <dfn
920920
<dt>U+005C REVERSE SOLIDUS (\)
921921

922922
<dd> If the <a href="#next-input-character"><i>next input
923-
character</i></a> is an EOF, this is a <i>parse error</i>. Append a
924-
U+005C REVERSE SOLIDUS (\) to the string token's value and emit the
925-
string token, then switch to the <a href="#data-state0"><i>data
923+
character</i></a> is an EOF, this is a <i>parse error</i>. Emit a
924+
bad-string token, then switch to the <a href="#data-state0"><i>data
926925
state</i></a>.
927926
<p> Otherwise, if the <a href="#next-input-character"><i>next input
928927
character</i></a> is a <a href="#newline"><i>newline</i></a>, consume
@@ -967,9 +966,8 @@ <h4 id=single-quote-string-state><span class=secno>3.4.5. </span> <dfn
967966
<dt>U+005C REVERSE SOLIDUS (\)
968967

969968
<dd> If the <a href="#next-input-character"><i>next input
970-
character</i></a> is an EOF, this is a <i>parse error</i>. Append a
971-
U+005C REVERSE SOLIDUS (\) to the string token's value and emit the
972-
string token, then switch to the <a href="#data-state0"><i>data
969+
character</i></a> is an EOF, this is a <i>parse error</i>. Emit a
970+
bad-string token, then switch to the <a href="#data-state0"><i>data
973971
state</i></a>.
974972
<p> Otherwise, if the <a href="#next-input-character"><i>next input
975973
character</i></a> is a <a href="#newline"><i>newline</i></a>, consume

css3-syntax/Overview.src.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,7 @@ <h4>
719719
If the <i>next input character</i>
720720
is an EOF,
721721
this is a <i>parse error</i>.
722-
Append a U+005C REVERSE SOLIDUS (\)
723-
to the string token's value
724-
and emit the string token,
722+
Emit a bad-string token,
725723
then switch to the <i>data state</i>.
726724

727725
<p>
@@ -779,9 +777,7 @@ <h4>
779777
If the <i>next input character</i>
780778
is an EOF,
781779
this is a <i>parse error</i>.
782-
Append a U+005C REVERSE SOLIDUS (\)
783-
to the string token's value
784-
and emit the string token,
780+
Emit a bad-string token,
785781
then switch to the <i>data state</i>.
786782

787783
<p>

0 commit comments

Comments
 (0)