Skip to content

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

@tabatkins

Description

@tabatkins

(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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions