W3C home > Mailing lists > Public > www-style@w3.org > September 2008

[css2.1] Comments within url() tokens

From: Zack Weinberg <zweinberg@mozilla.com>
Date: Wed, 24 Sep 2008 16:43:46 -0700
To: www-style@w3.org
Message-ID: <20080924164346.67ceb482@trurl>

There are longstanding bugs against Mozilla (since at least 2006) which
presume that comments are allowed to appear within whitespace within a
URI token; that is, this is a valid URI token:

 url( /**/ http://example.com/ /**/ )

I do not see text licensing this in CSS2.1.  Both the core (4.1.1) and
the appendix G tokenization rules for URI permit only {w} between the
parentheses and the text of the URL (whether or not quoted). Section
4.3.4 says "optional whitespace" is allowed, and defines "whitespace"
by reference as the S terminal, which does not include comments.

I suspect that for interoperability's sake comments ought to be

Received on Wednesday, 24 September 2008 23:44:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:39 UTC