Skip to content

Commit 3d6cf47

Browse files
committed
Make bad-string not consume the newline that caused it.
--HG-- extra : rebase_source : 6deac1d6880f0db2fa1028988190ce675d44c24a
1 parent 63b615d commit 3d6cf47

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

css3-syntax/Overview.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,8 @@ <h4 id=double-quote-string-state><span class=secno>3.4.4. </span> <dfn
915915
<dt><a href="#newline"><i>newline</i></a>
916916

917917
<dd> This is a <i>parse error</i>. Emit a bad-string token. Switch to the
918-
<a href="#data-state0"><i>data state</i></a>.
918+
<a href="#data-state0"><i>data state</i></a>. Reconsume the <a
919+
href="#current-input-character"><i>current input character</i></a>.
919920

920921
<dt>U+005C REVERSE SOLIDUS (\)
921922

@@ -961,7 +962,8 @@ <h4 id=single-quote-string-state><span class=secno>3.4.5. </span> <dfn
961962
<dt><a href="#newline"><i>newline</i></a>
962963

963964
<dd> This is a <i>parse error</i>. Emit a bad-string token. Switch to the
964-
<a href="#data-state0"><i>data state</i></a>.
965+
<a href="#data-state0"><i>data state</i></a>. Reconsume the <a
966+
href="#current-input-character"><i>current input character</i></a>.
965967

966968
<dt>U+005C REVERSE SOLIDUS (\)
967969

css3-syntax/Overview.src.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ <h4>
713713
This is a <i>parse error</i>.
714714
Emit a bad-string token.
715715
Switch to the <i>data state</i>.
716+
Reconsume the <i>current input character</i>.
716717

717718
<dt>U+005C REVERSE SOLIDUS (\)
718719
<dd>
@@ -771,6 +772,7 @@ <h4>
771772
This is a <i>parse error</i>.
772773
Emit a bad-string token.
773774
Switch to the <i>data state</i>.
775+
Reconsume the <i>current input character</i>.
774776

775777
<dt>U+005C REVERSE SOLIDUS (\)
776778
<dd>

0 commit comments

Comments
 (0)