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

Re: [CSS21] URL tokenization in invalid declarations

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 10 Sep 2010 03:40:08 +0200
To: fantasai <fantasai.lists@inkedblade.net>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <cs1j861k2iv56vka7vr8s5lmej8bkdu10m@hive.bjoern.hoehrmann.de>
* fantasai wrote:
>So does that mean this testcase is correct?
>   http://test.csswg.org/suites/css2.1/20100815/xhtml1/uri-016.xht

The assertion "Comments are just regular tokens inside unquoted URLs."
is wrong, comments are tokens, URLs (in the sense here) are tokens, and
tokens do not occur inside other tokens. This is rather testing having
spaces inside url(...) but spaces can only occur adjacent to the paren-
theses (if they are not quoted or escaped), so `url(test/* test)` is no
URI token but `url(test/*test)` is.

`url(test/* test)` should tokenize as


and no COMMENT as there is no "*/" in the style sheet and you only have
a COMMENT if there is "/*" and then "*/", with the current CR at least.
So other than that assertion this looks correct to me -- but there have
been a number of issues, changes and change proposals in this area, I'd
advise to get a second opinion from someone keeping track.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 10 September 2010 01:40:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC