W3C home > Mailing lists > Public > www-validator-css@w3.org > May 2012

Bug in url() parsing when url() contains a data URL (data:) without quotes

From: Bert Bos <bert@w3.org>
Date: Wed, 30 May 2012 13:53:41 +0200
To: www-validator-css@w3.org
Message-Id: <201205301353.42290.bert@w3.org>
The validator seems to try and check the syntax of URLs inside url() to 
some extent. However, it doesn't do that correctly/consistently:

1) It seems the validator doesn't know about data URLs and gives errors 
for URLs such as this one:

a:before { 
content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQAAAAA3bvkkAAAACklEQVQImWNoAAAAggCByxOyYQAAAABJRU5ErkJggg==) 
}

2) It doesn't give the same error when the URLs is quoted. The following 
has the same data URL, but is considered valid:

a:before { 
content:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQAAAAA3bvkkAAAACklEQVQImWNoAAAAggCByxOyYQAAAABJRU5ErkJggg==") 
}



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Wednesday, 30 May 2012 11:54:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:29 GMT