Skip to content

Commit 88ae3b1

Browse files
committed
[css-syntax] The unescaped newline is not part of <bad-string>
Match CSS 2.1, although this is not detectable whenever bad-string causes a rule or declaration to be dropped.
1 parent 972acef commit 88ae3b1

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

css-syntax/Overview.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<meta content="CSS Syntax Module Level 3 (CSS3 Syntax)" name=dcterms.title>
1313
<meta content=text name=dcterms.type>
14-
<meta content=2013-06-17 name=dcterms.date>
14+
<meta content=2013-06-19 name=dcterms.date>
1515
<meta content="Tab Atkins Jr." name=dcterms.creator>
1616
<meta content=W3C name=dcterms.publisher>
1717
<meta content="http://dev.w3.org/csswg/css3-syntax/"
@@ -32,7 +32,7 @@
3232
<h1 class=p-name>CSS Syntax Module Level 3</h1>
3333

3434
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft <time
35-
class=dt-updated datetime=20130617>17 June 2013</time></h2>
35+
class=dt-updated datetime=20130619>19 June 2013</time></h2>
3636

3737
<dl>
3838
<dt>This version:
@@ -553,12 +553,12 @@ <h3 id=overview-of-the-parsing-model><span class=secno>3.1. </span>
553553
<h3 id=the-input-byte-stream><span class=secno>3.2. </span> The input byte
554554
stream</h3>
555555

556-
<p> The stream of Unicode code points that comprises the input to the
557-
tokenization stage may be initially seen by the user agent as a stream of
558-
bytes (typically coming over the network or from the local file system).
559-
The bytes encode the actual characters according to a particular character
560-
encoding, which the user agent must use to decode the bytes into
561-
characters.
556+
<p> When parsing a stylesheet, the stream of Unicode code points that
557+
comprises the input to the tokenization stage may be initially seen by the
558+
user agent as a stream of bytes (typically coming over the network or from
559+
the local file system). The bytes encode the actual characters according
560+
to a particular character encoding, which the user agent must use to
561+
decode the bytes into characters.
562562

563563
<p> To decode the stream of bytes into a stream of characters, UAs must
564564
follow these steps.
@@ -1823,8 +1823,9 @@ <h4 id=consume-a-string-token><span class=secno>4.3.4. </span> <dfn
18231823

18241824
<dt><a href="#newline"><i>newline</i></a>
18251825

1826-
<dd> This is a <a href="#parse-errors"><i>parse error</i></a>. Create a
1827-
〈bad-string〉 and return it.
1826+
<dd> This is a <a href="#parse-errors"><i>parse error</i></a>. <a
1827+
href="#reconsume-the-current-input-character"><i>Reconsume the current
1828+
input character</i></a>, create a 〈bad-string〉, and return it.
18281829

18291830
<dt>U+005C REVERSE SOLIDUS (\)
18301831

css-syntax/Overview.src.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,8 @@ <h4>
10891089
<dt><i>newline</i>
10901090
<dd>
10911091
This is a <i>parse error</i>.
1092-
Create a 〈bad-string〉 and return it.
1092+
<i>Reconsume the current input character</i>,
1093+
create a 〈bad-string〉, and return it.
10931094

10941095
<dt>U+005C REVERSE SOLIDUS (\)
10951096
<dd>

0 commit comments

Comments
 (0)