Skip to content

Commit 4a8df42

Browse files
committed
[css-syntax] Require to start with an <ident-token> in Parse a declaration.
1 parent 1fad26c commit 4a8df42

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

css-syntax/Overview.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</p>
5555
<h1 class="p-name no-ref" id=title>CSS Syntax Module Level 3</h1>
5656
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
57-
<span class=dt-updated><span class=value-title title=20131202>2 December 2013</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20131209>9 December 2013</span></span></span></h2>
5858
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-syntax/>http://dev.w3.org/csswg/css-syntax/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css-syntax-3/>http://www.w3.org/TR/css-syntax-3/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-syntax/>http://dev.w3.org/csswg/css-syntax/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2013/WD-css-syntax-3-20131105/ rel=previous>http://www.w3.org/TR/2013/WD-css-syntax-3-20131105/</a><dd><a href=http://www.w3.org/TR/2013/WD-css-syntax-3-20130919/ rel=previous>http://www.w3.org/TR/2013/WD-css-syntax-3-20130919/</a>
5959
<dt>Feedback:</dt>
6060
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-syntax%5D%20feedback">www-style@w3.org</a>
@@ -3696,6 +3696,10 @@ <h4 class="heading settled heading" data-level=5.3.4 id=parse-a-declaration><spa
36963696
While the <a data-link-type=dfn href=#current-input-token title="current input token">current input token</a> is a <a class="production css-code" data-link-type=type href=#typedef-whitespace-token title="<whitespace-token>">&lt;whitespace-token&gt;</a>,
36973697
<a data-link-type=dfn href=#consume-the-next-input-token title="consume the next input token">consume the next input token</a>.
36983698

3699+
<li>
3700+
If the <a data-link-type=dfn href=#current-input-token title="current input token">current input token</a> is not an <a class="production css-code" data-link-type=type href=#typedef-ident-token title="<ident-token>">&lt;ident-token&gt;</a>,
3701+
return a syntax error.
3702+
36993703
<li>
37003704
<a data-link-type=dfn href=#consume-a-declaration0 title="consume a declaration">Consume a declaration</a>.
37013705
If anything was returned, return it.

css-syntax/Overview.src.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,6 +2200,10 @@ <h4 id="parse-a-declaration">
22002200
While the <a>current input token</a> is a <<whitespace-token>>,
22012201
<a>consume the next input token</a>.
22022202

2203+
<li>
2204+
If the <a>current input token</a> is not an <<ident-token>>,
2205+
return a syntax error.
2206+
22032207
<li>
22042208
<a>Consume a declaration</a>.
22052209
If anything was returned, return it.

0 commit comments

Comments
 (0)