@@ -2076,6 +2076,10 @@ <h4 id=creating-and-inserting-rules><span class=secno>3.6.1. </span>
20762076 < h4 id =definitions0 > < span class =secno > 3.6.2. </ span > Definitions</ h4 >
20772077
20782078 < dl >
2079+ < dt > < dfn id =current-input-token > current input token</ dfn >
2080+
2081+ < dd > ...
2082+
20792083 < dt > < dfn id =next-input-token > next input token</ dfn >
20802084
20812085 < dd > ...
@@ -2109,23 +2113,23 @@ <h4 id=top-level-mode-><span class=secno>3.6.3. </span> <dfn
21092113
21102114 < dt > at-keyword token
21112115
2112- < dd > < i > Create an at-rule</ i > with its name set to the value of the
2113- < i > current input token</ i > and push it onto the < a
2114- href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > . Switch to the
2115- < a href ="#at-rule-mode0 "> < i > at-rule mode</ i > </ a > .
2116+ < dd > < i > Create an at-rule</ i > with its name set to the value of the < a
2117+ href =" #current-input-token " > < i > current input token</ i > </ a > and push it
2118+ onto the < a href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > .
2119+ Switch to the < a href ="#at-rule-mode0 "> < i > at-rule mode</ i > </ a > .
21162120
21172121 < dt > < span class =temp > {</ span > token
21182122
21192123 < dd > This is a < i > parse error</ i > . < a href ="#consume-a-block0 "> < i > Consume
2120- a block</ i > </ a > with the < i > current input token</ i > . Ignore the return
2121- value. Remain in this state.
2124+ a block</ i > </ a > with the < a href =" #current- input- token" > < i > current input
2125+ token </ i > </ a > . Ignore the return value. Remain in this state.
21222126
21232127 < dt > anything else
21242128
21252129 < dd > < i > Create a style rule</ i > and push it onto the < a
21262130 href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > . Switch to the
2127- < a href ="#style-rule-mode0 "> < i > style-rule mode</ i > </ a > . Reprocess the
2128- < i > current input token</ i > .
2131+ < a href ="#style-rule-mode0 "> < i > style-rule mode</ i > </ a > . Reprocess the < a
2132+ href =" #current-input-token " > < i > current input token</ i > </ a > .
21292133 </ dl >
21302134
21312135 < h4 id =at-rule-mode > < span class =secno > 3.6.4. </ span > < dfn
@@ -2152,21 +2156,23 @@ <h4 id=at-rule-mode><span class=secno>3.6.4. </span> <dfn
21522156
21532157 < dt > < span class =temp > (</ span > token
21542158
2155- < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2156- < i > current input token</ i > . Append the returned block to the prelude of
2157- the < a href ="#current-rule "> < i > current rule </ i > </ a > and remain in this
2158- mode.
2159+ < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the < a
2160+ href =" #current-input-token " > < i > current input token</ i > </ a > . Append the
2161+ returned block to the prelude of the < a href ="#current-rule "> < i > current
2162+ rule </ i > </ a > and remain in this mode.
21592163
21602164 < dt > function token
21612165
2162- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Append
2163- the returned function to the prelude of the < a
2166+ < dd > < i > Consume a function</ i > with the < a
2167+ href ="#current-input-token "> < i > current input token</ i > </ a > . Append the
2168+ returned function to the prelude of the < a
21642169 href ="#current-rule "> < i > current rule</ i > </ a > and remain in this mode.
21652170
21662171 < dt > anything else
21672172
2168- < dd > Append the < i > current input token</ i > to the prelude of the < a
2169- href ="#current-rule "> < i > current rule</ i > </ a > and remain in this mode.
2173+ < dd > Append the < a href ="#current-input-token "> < i > current input
2174+ token</ i > </ a > to the prelude of the < a href ="#current-rule "> < i > current
2175+ rule</ i > </ a > and remain in this mode.
21702176 </ dl >
21712177
21722178 < h4 id =at-rule-block-mode > < span class =secno > 3.6.5. </ span > < dfn
@@ -2198,10 +2204,10 @@ <h4 id=at-rule-block-mode><span class=secno>3.6.5. </span> <dfn
21982204
21992205 < dt > at-keyword token
22002206
2201- < dd > < i > Create an at-rule</ i > with its name set to the value of the
2202- < i > current input token</ i > and push it onto the < a
2203- href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > . Switch to the
2204- < a href ="#at-rule-mode0 "> < i > at-rule mode</ i > </ a > .
2207+ < dd > < i > Create an at-rule</ i > with its name set to the value of the < a
2208+ href =" #current-input-token " > < i > current input token</ i > </ a > and push it
2209+ onto the < a href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > .
2210+ Switch to the < a href ="#at-rule-mode0 "> < i > at-rule mode</ i > </ a > .
22052211 </ dl >
22062212
22072213 < p class =issue > Not done yet. Every at-rule allows more at-rules in its
@@ -2226,15 +2232,16 @@ <h4 id=style-rule-mode><span class=secno>3.6.6. </span> <dfn
22262232
22272233 < dt > < span class =temp > (</ span > token
22282234
2229- < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2230- < i > current input token</ i > . Append the returned block to the selector of
2231- the < a href ="#current-rule "> < i > current rule </ i > </ a > and remain in this
2232- mode.
2235+ < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the < a
2236+ href =" #current-input-token " > < i > current input token</ i > </ a > . Append the
2237+ returned block to the selector of the < a href ="#current-rule "> < i > current
2238+ rule </ i > </ a > and remain in this mode.
22332239
22342240 < dt > function token
22352241
2236- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Append
2237- the returned function to the selector of the < a
2242+ < dd > < i > Consume a function</ i > with the < a
2243+ href ="#current-input-token "> < i > current input token</ i > </ a > . Append the
2244+ returned function to the selector of the < a
22382245 href ="#current-rule "> < i > current rule</ i > </ a > and remain in this mode.
22392246
22402247 < dt > anything else
@@ -2266,9 +2273,9 @@ <h4 id=declaration-mode><span class=secno>3.6.7. </span> <dfn
22662273
22672274 < dt > ident token
22682275
2269- < dd > Create a declaration with its name set to the value of the < i > current
2270- input token</ i > . Switch to the < a
2271- href ="#after-declaration-name-mode0 "> < i > after-declaration-name
2276+ < dd > Create a declaration with its name set to the value of the < a
2277+ href =" #current- input-token " > < i > current input token</ i > </ a > . Switch to the
2278+ < a href ="#after-declaration-name-mode0 "> < i > after-declaration-name
22722279 mode</ i > </ a > .
22732280
22742281 < dt > anything else
@@ -2319,15 +2326,17 @@ <h4 id=declaration-value-mode><span class=secno>3.6.9. </span> <dfn
23192326
23202327 < dt > < span class =temp > (</ span > token
23212328
2322- < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2323- < i > current input token</ i > . Append the returned block to the value of the
2324- < a href ="#current-declaration "> < i > current declaration</ i > </ a > and remain
2325- in this mode.
2329+ < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the < a
2330+ href ="#current-input-token "> < i > current input token</ i > </ a > . Append the
2331+ returned block to the value of the < a
2332+ href ="#current-declaration "> < i > current declaration</ i > </ a > and remain in
2333+ this mode.
23262334
23272335 < dt > function token
23282336
2329- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Append
2330- the returned function to the value of the < a
2337+ < dd > < i > Consume a function</ i > with the < a
2338+ href ="#current-input-token "> < i > current input token</ i > </ a > . Append the
2339+ returned function to the value of the < a
23312340 href ="#current-declaration "> < i > current declaration</ i > </ a > . and remain in
23322341 this mode.
23332342
@@ -2364,7 +2373,8 @@ <h4 id=declaration-value-mode><span class=secno>3.6.9. </span> <dfn
23642373
23652374 < dt > anything else
23662375
2367- < dd > Append the < i > current input token</ i > to the value of the < a
2376+ < dd > Append the < a href ="#current-input-token "> < i > current input
2377+ token</ i > </ a > to the value of the < a
23682378 href ="#current-declaration "> < i > current declaration</ i > </ a > . Remain in
23692379 this mode.
23702380 </ dl >
@@ -2420,23 +2430,25 @@ <h4 id=next-block-error-mode><span class=secno>3.6.11. </span> <dfn
24202430 < dl >
24212431 < dt > < span class =temp > {</ span > token
24222432
2423- < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2424- < i > current input token</ i > . Ignore the return value. < a
2433+ < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the < a
2434+ href ="#current-input-token "> < i > current input token</ i > </ a > . Ignore the
2435+ return value. < a
24252436 href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
24262437 current rule's content mode</ i > </ a > .
24272438
24282439 < dt > < span class =temp > [</ span > token
24292440
24302441 < dt > < span class =temp > (</ span > token
24312442
2432- < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2433- < i > current input token</ i > . Ignore the return value. Remain in this mode.
2434-
2443+ < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the < a
2444+ href =" #current-input-token " > < i > current input token</ i > </ a > . Ignore the
2445+ return value. Remain in this mode.
24352446
24362447 < dt > function token
24372448
2438- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Ignore
2439- the return value. Remain in this mode.
2449+ < dd > < i > Consume a function</ i > with the < a
2450+ href ="#current-input-token "> < i > current input token</ i > </ a > . Ignore the
2451+ return value. Remain in this mode.
24402452
24412453 < dt > anything else
24422454
@@ -2457,22 +2469,24 @@ <h4 id=next-declaration-error-mode><span class=secno>3.6.12. </span> <dfn
24572469 < dt > < span class =temp > }</ span > token
24582470
24592471 < dd > Do nothing. Switch to the < a href ="#declaration-mode0 "> < i > declaration
2460- mode</ i > </ a > . Reprocess the < i > current input token</ i > .
2472+ mode</ i > </ a > . Reprocess the < a href ="#current-input-token "> < i > current
2473+ input token</ i > </ a > .
24612474
24622475 < dt > < span class =temp > {</ span > token
24632476
24642477 < dt > < span class =temp > [</ span > token
24652478
24662479 < dt > < span class =temp > (</ span > token
24672480
2468- < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2469- < i > current input token</ i > . Ignore the return value. Remain in this mode.
2470-
2481+ < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the < a
2482+ href =" #current-input-token " > < i > current input token</ i > </ a > . Ignore the
2483+ return value. Remain in this mode.
24712484
24722485 < dt > function token
24732486
2474- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Ignore
2475- the return value. Remain in this mode.
2487+ < dd > < i > Consume a function</ i > with the < a
2488+ href ="#current-input-token "> < i > current input token</ i > </ a > . Ignore the
2489+ return value. Remain in this mode.
24762490
24772491 < dt > anything else
24782492
@@ -2494,23 +2508,25 @@ <h4 id=next-block-or-statement-error-mode><span class=secno>3.6.13. </span>
24942508
24952509 < dt > < span class =temp > {</ span > token
24962510
2497- < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2498- < i > current input token</ i > . Ignore the return value. < a
2511+ < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the < a
2512+ href ="#current-input-token "> < i > current input token</ i > </ a > . Ignore the
2513+ return value. < a
24992514 href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
25002515 current rule's content mode</ i > </ a > .
25012516
25022517 < dt > < span class =temp > [</ span > token
25032518
25042519 < dt > < span class =temp > (</ span > token
25052520
2506- < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2507- < i > current input token</ i > . Ignore the return value. Remain in this mode.
2508-
2521+ < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the < a
2522+ href =" #current-input-token " > < i > current input token</ i > </ a > . Ignore the
2523+ return value. Remain in this mode.
25092524
25102525 < dt > function token
25112526
2512- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Ignore
2513- the return value. Remain in this mode.
2527+ < dd > < i > Consume a function</ i > with the < a
2528+ href ="#current-input-token "> < i > current input token</ i > </ a > . Ignore the
2529+ return value. Remain in this mode.
25142530
25152531 < dt > anything else
25162532
@@ -2548,20 +2564,23 @@ <h4 id=consume-a-block><span class=secno>3.6.14. </span> <dfn
25482564
25492565 < dt > < span class =temp > (</ span > token
25502566
2551- < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the
2552- < i > current input token</ i > . Append the returned block to the value of the
2553- < a href ="#current-block "> < i > current block</ i > </ a > .
2567+ < dd > < a href ="#consume-a-block0 "> < i > Consume a block</ i > </ a > with the < a
2568+ href ="#current-input-token "> < i > current input token</ i > </ a > . Append the
2569+ returned block to the value of the < a href ="#current-block "> < i > current
2570+ block</ i > </ a > .
25542571
25552572 < dt > function token
25562573
2557- < dd > < i > Consume a function</ i > with the < i > current input token</ i > . Append
2558- the returned function to the value of the < a
2559- href ="#current-block "> < i > current block</ i > </ a > .
2574+ < dd > < i > Consume a function</ i > with the < a
2575+ href ="#current-input-token "> < i > current input token</ i > </ a > . Append the
2576+ returned function to the value of the < a href ="#current-block "> < i > current
2577+ block</ i > </ a > .
25602578
25612579 < dt > anything else
25622580
2563- < dd > Append the < i > current input token</ i > to the value of the < a
2564- href ="#current-block "> < i > current block</ i > </ a > .
2581+ < dd > Append the < a href ="#current-input-token "> < i > current input
2582+ token</ i > </ a > to the value of the < a href ="#current-block "> < i > current
2583+ block</ i > </ a > .
25652584 </ dl >
25662585
25672586 < h4 id =switch-to-the-current-rules-content-mode > < span class =secno > 3.6.15.
@@ -2897,6 +2916,9 @@ <h2 class=no-num id=index> Index</h2>
28972916 < li > current input character, < a href ="#current-input-character "
28982917 title ="current input character "> < strong > 3.2.2.</ strong > </ a >
28992918
2919+ < li > current input token, < a href ="#current-input-token "
2920+ title ="current input token "> < strong > 3.6.2.</ strong > </ a >
2921+
29002922 < li > current rule, < a href ="#current-rule "
29012923 title ="current rule "> < strong > 3.6.2.</ strong > </ a >
29022924
0 commit comments