[csswg-drafts] Pull Request: [css-syntax] Simplify ident-like URL consumption

jonathantneal has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [css-syntax] Simplify ident-like URL consumption ==
The specification reads:

> While the next two input code points are whitespace, consume the next input code point.

If I understand correctly, this will repeatedly consume whitespace until 0 or 1 whitespace input code points remain.

Then it reads:

> If the next one or two input code points U+0022 QUOTATION MARK (`"`), U+0027 APOSTROPHE (`'`), or whitespace followed by U+0022 QUOTATION MARK (`"`) or U+0027 APOSTROPHE (`'`), then create a `<function-token>`...

Could this be simplified?

> While the next input code point is whitespace, consume it. If the next input code point is a U+0022 QUOTATION MARK (`"`) or U+0027 APOSTROPHE (`'`), then create a `<function-token>`...

See https://github.com/w3c/csswg-drafts/pull/5414


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 10 August 2020 19:24:52 UTC