Skip to content

Commit bb5b3e7

Browse files
committed
[css-syntax] Log a parse error for unclosed comments.
1 parent e4cdd12 commit bb5b3e7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

css-syntax/Overview.bs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1156,9 +1156,10 @@ Consume comments</h4>
11561156
or up to an EOF code point.
11571157
Return to the start of this step.
11581158

1159-
Otherwise,
1160-
return nothing.
1159+
If the following paragraph ended by consuming an EOF code point,
1160+
this is a <a>parse error</a>.
11611161

1162+
Return nothing.
11621163

11631164

11641165
<h4 id="consume-a-numeric-token">

css-syntax/Overview.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</p>
5959
<h1 class="p-name no-ref" id=title>CSS Syntax Module Level 3</h1>
6060
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
61-
<span class=dt-updated><span class=value-title title=20140627>27 June 2014</span></span></span></h2>
61+
<span class=dt-updated><span class=value-title title=20140707>7 July 2014</span></span></span></h2>
6262
<div data-fill-with=spec-metadata><dl>
6363
<dt>This version:
6464
<dd><a class=u-url href=http://dev.w3.org/csswg/css-syntax/>http://dev.w3.org/csswg/css-syntax/</a>
@@ -2248,9 +2248,10 @@ <h4 class="heading settled heading" data-level=4.3.2 id=consume-comments><span c
22482248
or up to an EOF code point.
22492249
Return to the start of this step.</p>
22502250

2251-
<p>Otherwise,
2252-
return nothing.</p>
2251+
<p>If the following paragraph ended by consuming an EOF code point,
2252+
this is a <a data-link-type=dfn href=#parse-error title="parse error">parse error</a>.</p>
22532253

2254+
<p>Return nothing.</p>
22542255

22552256

22562257
<h4 class="heading settled heading" data-level=4.3.3 id=consume-a-numeric-token><span class=secno>4.3.3 </span><span class=content>

0 commit comments

Comments
 (0)