W3C home > Mailing lists > Public > www-validator-css@w3.org > April 2002

Re: [BUG] style attribute without specifying CSS

From: Terje Bless <link@pobox.com>
Date: Thu, 4 Apr 2002 15:53:14 +0200
To: Karl Dubost <karl@w3.org>
cc: www-validator@w3.org, www-validator-css@w3.org
Message-ID: <b01050102-1013-4F03453947D311D68D2D00039300CF5C@[]>
Karl Dubost <karl@w3.org> wrote:

>I have found something, maybe already known, The HTML validator and the
>CSS validator can't detect this file is wrong :
>This file has a style attribute style="color: green; border: solid red;"
>but no metaname specifying the default stylesheet language. So by
>definition, the file is not a valid one :

And, regrettably, we cannot check for this. This is another one of those
limitations that exist only in the prose and cannot be expressed in a
Document Type Declaration. I'm not even sure you can coerce a XML Schema
Processor to check for this. Any form of "lint" -- as possibly the CSS
Validator can be said to be -- should be able to do it though. It would
aslo be a good check to implement for third party tools, such as editors
and publishing systems, to implement.

As a cat owner, I know this for a fact... Nothing says "I love you" like a
decapitated gopher on your front porch.
Received on Thursday, 4 April 2002 08:53:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:00:48 UTC