@@ -1244,8 +1244,12 @@ Consume a string token</h4>
1244
1244
1245
1245
<dl>
1246
1246
<dt><var> ending code point</var>
1247
+ <dd>
1248
+ Return the <<string-token>> .
1249
+
1247
1250
<dt> EOF
1248
1251
<dd>
1252
+ This is a <a>parse error</a> .
1249
1253
Return the <<string-token>> .
1250
1254
1251
1255
<dt> <a>newline</a>
@@ -1257,6 +1261,7 @@ Consume a string token</h4>
1257
1261
<dt> U+005C REVERSE SOLIDUS (\)
1258
1262
<dd>
1259
1263
If the <a>next input code point</a> is EOF,
1264
+ this is a <a>parse error</a> ;
1260
1265
do nothing.
1261
1266
1262
1267
Otherwise,
@@ -1291,22 +1296,27 @@ Consume a url token</h4>
1291
1296
1292
1297
<li>
1293
1298
If the <a>next input code point</a> is EOF,
1294
- return the <<url-token>> .
1299
+ this is a <a>parse error</a> .
1300
+ Return the <<url-token>> .
1295
1301
1296
1302
<li>
1297
1303
Repeatedly consume the <a>next input code point</a> from the stream:
1298
1304
1299
1305
<dl>
1300
1306
<dt> U+0029 RIGHT PARENTHESIS ())
1301
- <dt> EOF
1302
1307
<dd>
1303
1308
Return the <<url-token>> .
1304
1309
1310
+ <dt> EOF
1311
+ This is a <a>parse error</a> .
1312
+ Return the <<url-token>> .
1313
+
1305
1314
<dt> <a>whitespace</a>
1306
1315
<dd>
1307
1316
Consume as much <a>whitespace</a> as possible.
1308
1317
If the <a>next input code point</a> is U+0029 RIGHT PARENTHESIS ()) or EOF,
1309
- consume it and return the <<url-token>> ;
1318
+ consume it and return the <<url-token>>
1319
+ (if EOF was encountered, this is a <a>parse error</a> );
1310
1320
otherwise,
1311
1321
<a>consume the remnants of a bad url</a> ,
1312
1322
create a <<bad-url-token>> ,
@@ -1370,6 +1380,7 @@ Consume an escaped code point</h4>
1370
1380
1371
1381
<dt> EOF code point
1372
1382
<dd>
1383
+ This is a <a>parse error</a> .
1373
1384
Return U+FFFD REPLACEMENT CHARACTER (�).
1374
1385
1375
1386
<dt> anything else
@@ -2351,10 +2362,13 @@ Consume an at-rule</h4>
2351
2362
2352
2363
<dl>
2353
2364
<dt> <<semicolon-token>>
2354
- <dt> <<EOF-token>>
2355
2365
<dd>
2356
2366
Return the at-rule.
2357
2367
2368
+ <dt> <<EOF-token>>
2369
+ This is a <a>parse error</a> .
2370
+ Return the at-rule.
2371
+
2358
2372
<dt> <a href="#tokendef-open-curly"><{-token></a>
2359
2373
<dd>
2360
2374
<a>Consume a simple block</a>
@@ -2531,11 +2545,14 @@ Consume a simple block</h4>
2531
2545
Repeatedly consume the <a>next input token</a> and process it as follows:
2532
2546
2533
2547
<dl>
2534
- <dt> <<EOF-token>>
2535
2548
<dt> <a>ending token</a>
2536
2549
<dd>
2537
2550
Return the block.
2538
2551
2552
+ <dt> <<EOF-token>>
2553
+ This is a <a>parse error</a> .
2554
+ Return the block.
2555
+
2539
2556
<dt> anything else
2540
2557
<dd>
2541
2558
<a>Reconsume the current input token</a> .
@@ -2557,11 +2574,14 @@ Consume a function</h4>
2557
2574
Repeatedly consume the <a>next input token</a> and process it as follows:
2558
2575
2559
2576
<dl>
2560
- <dt> <<EOF-token>>
2561
2577
<dt> <a href="#tokendef-close-paren"><)-token></a>
2562
2578
<dd>
2563
2579
Return the function.
2564
2580
2581
+ <dt> <<EOF-token>>
2582
+ This is a <a>parse error</a> .
2583
+ Return the function.
2584
+
2565
2585
<dt> anything else
2566
2586
<dd>
2567
2587
<a>Reconsume the current input token</a> .
0 commit comments