Skip to content

Commit f58445e

Browse files
committed
[css-syntax] Expand the note in 'consume a url token' to make it clear that this algo doesn't consume quoted urls.
1 parent b44bf2b commit f58445e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-syntax-3/Overview.bs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,12 @@ Consume a url token</h4>
12031203
It returns either a <<url-token>> or a <<bad-url-token>>.
12041204

12051205
Note: This algorithm assumes that the initial "url(" has already been consumed.
1206+
This algorithm also assumes that it's being called to consume an "unquoted" value,
1207+
like ''url(foo)''.
1208+
A quoted value, like ''url("foo")'',
1209+
is parsed as a <<function-token>>.
1210+
<a>Consume an ident-like token</a> automatically handles this distinction;
1211+
this algorithm shouldn't be called directly otherwise.
12061212

12071213
<ol>
12081214
<li>

0 commit comments

Comments
 (0)