W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

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

From: Jonathan Neal via GitHub <sysbot+gh@w3.org>
Date: Mon, 10 Aug 2020 19:24:50 +0000
To: public-css-archive@w3.org
Message-ID: <pull_request.opened-465685772-1597087489-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC