Validating 'URIs'

Olivier wrote:
>  The original bug report is correct, that relative URIs should not be dereferenced when using file upload or direct input.

Thank you for that, Olivier. Aside from the case of @import, there is a more general issue with URLs.

What should happen about validating the syntax of a URL itself? Should the CSS validator attempt this? Is it acceptable to say that a CSS file is "valid" if URLs that it contains are ill-formed? Or should this need to be devolved to another component?

For instance, I notice that the validator allows all sorts of strange things in other cases where a URI is accepted, such as

 * { background-image: url(" ") }

or

 * { background-image: url("::::::") }


Cecil Ward.

Received on Friday, 3 August 2007 09:42:10 UTC