Re: Validator says style sheet doesn't exist

On Mon, Apr 04, 2005 at 06:36:05AM +0200, Bjoern Hoehrmann wrote:
> * David Dorward wrote:
>> url( http://www.stephenfox.us/wp/wp-content/themes/green pelican/style.css )

> >That is not a URL (URLs may not contain spaces, which must be encoded
> >as %20.)
 
> White-space is allowed here, http://www.w3.org/TR/CSS21/syndata.html#uri

The white space after the "(" and before the ")" is fine. It is the
space between "green" and "pelican" that is a problem (under the rules
for URIs, not for CSS).

You could compare:

* http://dorward.me.uk/tmp/url-space-css/without.html
* http://dorward.me.uk/tmp/url-space-css/with.html

The former has the space correctly encoded as %20, the latter
doesn't. Both the validator and Firefox choke on the one with the
literal space.

-- 
David Dorward                                      http://dorward.me.uk

Received on Monday, 4 April 2005 07:00:34 UTC