Re: [BUG] style attribute without specifying CSS

At 15:53 +0200 2002-04-04, Terje Bless wrote:
>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 :
>>
>>http://www.la-grange.net/2002/04/03-styleatt-wo-meta
>>
>>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

I agree with you... but it's a warning of the HTML 4.01 recommandation.

In http://www.w3.org/TR/1999/REC-html401-19991224/intro/sgmltut.html#h-3.1

3. A specification that describes the semantics to be ascribed to the 
markup. This specification also imposes syntax restrictions that 
cannot be expressed within the DTD.

I think we should try to identify in the recommandations the things 
which are not expressed in terms of a DTD but that the recommandation 
says it's correct or not. And so we may establish mechanism to 
identify and detect those problems.

argg ;) more things to do.

>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.

Yes you're right.
CSS validator should detect that error too.

-- 
Karl Dubost / W3C - Conformance Manager
           http://www.w3.org/QA/

      --- Be Strict To Be Cool! ---

Received on Thursday, 4 April 2002 10:46:04 UTC