[csswg-drafts] [css-syntax] This change in url() tokenization looks wrong (#3597)

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax] This change in url() tokenization looks wrong ==
(migrated from the mailing list)

**Simon Sapin said:**

> https://dvcs.w3.org/hg/csswg/rev/9fdb78b42060 looks wrong:
> 
> > whitespace
> >
> > Consume as much whitespace as possible. If the next input code point
> > is U+0029 RIGHT PARENTHESIS ()) or EOF, consume it and return the
> > `<url-token>`; otherwise, consume the remnants of a bad url, create a
> > `<bad-url-token>`, and return it.
> 
> So url( a) is a `<bad-url-token>` ?

----------------

**Tab Atkins said:**

> Ah, *that's* why I had the "redundant" early steps - to allow
> whitespace only at the beginning or end.  I'll revert.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3597 using your GitHub account

Received on Saturday, 2 February 2019 00:24:09 UTC