Skip to content

Commit 29c0f02

Browse files
committed
[css-syntax] url state is the only entry point for the other url states, so just create url token there.
1 parent 3608a98 commit 29c0f02

2 files changed

Lines changed: 12 additions & 27 deletions

File tree

css-syntax/Overview.html

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,12 +2313,14 @@ <h4 id=url-state><span class=secno>4.4.13. </span> <dfn id=url-state0>URL
23132313

23142314
<dt>U+0022 QUOTATION MARK (")
23152315

2316-
<dd> Switch to the <a href="#url-double-quote-state0"><i>url-double-quote
2316+
<dd> Create a url token with its value initially set to the empty string.
2317+
Switch to the <a href="#url-double-quote-state0"><i>url-double-quote
23172318
state</i></a>.
23182319

23192320
<dt>U+0027 APOSTROPHE (&apos;)
23202321

2321-
<dd> Switch to the <a href="#url-single-quote-state0"><i>url-single-quote
2322+
<dd> Create a url token with its value initially set to the empty string.
2323+
Switch to the <a href="#url-single-quote-state0"><i>url-single-quote
23222324
state</i></a>.
23232325

23242326
<dt>U+0029 RIGHT PARENTHESIS ())
@@ -2332,7 +2334,8 @@ <h4 id=url-state><span class=secno>4.4.13. </span> <dfn id=url-state0>URL
23322334

23332335
<dt>anything else
23342336

2335-
<dd> Switch to the <a href="#url-unquoted-state0"><i>url-unquoted
2337+
<dd> Create a url token with its value initially set to the empty string.
2338+
Switch to the <a href="#url-unquoted-state0"><i>url-unquoted
23362339
state</i></a>. <a
23372340
href="#reconsume-the-current-input-character"><i>Reconsume the current
23382341
input character</i></a>.
@@ -2341,9 +2344,6 @@ <h4 id=url-state><span class=secno>4.4.13. </span> <dfn id=url-state0>URL
23412344
<h4 id=url-double-quote-state><span class=secno>4.4.14. </span> <dfn
23422345
id=url-double-quote-state0>URL-double-quote state</dfn></h4>
23432346

2344-
<p> If a url token has not yet been created since entering this state,
2345-
create a url token with its value initially set to the empty string.
2346-
23472347
<p> Consume the <a href="#next-input-character"><i>next input
23482348
character</i></a>.
23492349

@@ -2387,9 +2387,6 @@ <h4 id=url-double-quote-state><span class=secno>4.4.14. </span> <dfn
23872387
<h4 id=url-single-quote-state><span class=secno>4.4.15. </span> <dfn
23882388
id=url-single-quote-state0>URL-single-quote state</dfn></h4>
23892389

2390-
<p> If a url token has not yet been created since entering this state,
2391-
create a url token with its value initially set to the empty string.
2392-
23932390
<p> Consume the <a href="#next-input-character"><i>next input
23942391
character</i></a>.
23952392

@@ -2459,9 +2456,6 @@ <h4 id=url-end-state><span class=secno>4.4.16. </span> <dfn
24592456
<h4 id=url-unquoted-state><span class=secno>4.4.17. </span> <dfn
24602457
id=url-unquoted-state0>URL-unquoted state</dfn></h4>
24612458

2462-
<p> If a url token has not yet been created since entering this state,
2463-
create a url token with its value initially set to the empty string.
2464-
24652459
<p> Consume the <a href="#next-input-character"><i>next input
24662460
character</i></a>.
24672461

css-syntax/Overview.src.html

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,10 +1590,14 @@ <h4>
15901590

15911591
<dt>U+0022 QUOTATION MARK (")
15921592
<dd>
1593+
Create a url token
1594+
with its value initially set to the empty string.
15931595
Switch to the <i>url-double-quote state</i>.
15941596

15951597
<dt>U+0027 APOSTROPHE (&apos;)
15961598
<dd>
1599+
Create a url token
1600+
with its value initially set to the empty string.
15971601
Switch to the <i>url-single-quote state</i>.
15981602

15991603
<dt>U+0029 RIGHT PARENTHESIS ())
@@ -1608,18 +1612,15 @@ <h4>
16081612

16091613
<dt>anything else
16101614
<dd>
1615+
Create a url token
1616+
with its value initially set to the empty string.
16111617
Switch to the <i>url-unquoted state</i>.
16121618
<i>Reconsume the current input character</i>.
16131619
</dl>
16141620

16151621
<h4>
16161622
<dfn>URL-double-quote state</dfn></h4>
16171623

1618-
<p>
1619-
If a url token has not yet been created since entering this state,
1620-
create a url token
1621-
with its value initially set to the empty string.
1622-
16231624
<p>
16241625
Consume the <i>next input character</i>.
16251626

@@ -1669,11 +1670,6 @@ <h4>
16691670
<h4>
16701671
<dfn>URL-single-quote state</dfn></h4>
16711672

1672-
<p>
1673-
If a url token has not yet been created since entering this state,
1674-
create a url token
1675-
with its value initially set to the empty string.
1676-
16771673
<p>
16781674
Consume the <i>next input character</i>.
16791675

@@ -1747,11 +1743,6 @@ <h4>
17471743
<h4>
17481744
<dfn>URL-unquoted state</dfn></h4>
17491745

1750-
<p>
1751-
If a url token has not yet been created since entering this state,
1752-
create a url token
1753-
with its value initially set to the empty string.
1754-
17551746
<p>
17561747
Consume the <i>next input character</i>.
17571748

0 commit comments

Comments
 (0)