W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] WA1: <meta> attribute requirements

From: Sjoerd Visscher <sjoerd@w3future.com>
Date: Tue, 19 Jul 2005 01:25:19 +0200
Message-ID: <42DC3A5F.6010405@w3future.com>
Ian Hickson wrote:
> On Mon, 18 Jul 2005 sjoerd at w3future.com wrote:
> 
>>>>It would mean that leaving the attribute out violates a conformance 
>>>>requirement, making the document non-conformant.
>>>
>>>...the advantage of which being...?
>>>
>>>I don't understand the point in making this code:
>>>
>>>   // this element will be used later
>>>   var meta = document.createElement('meta');
>>>
>>>...non-conformant.
>>
>>Elements cannot be validated until they are inserted in the document, 
>>because the type depends on the position in the document. I'd say it is 
>>non-conformant to add a meta element without attributes to a document.
> 
> 
> I don't see why you can't validate an orphan fragment. Clearly the spec 
> needs to be clarified a bit, but it doesn't seem impossible.

You could with a handwritten html 5 validator, but not with a generic 
validation tool, because elements with the same name can have different 
types in different locations in the document.

-- 
Sjoerd Visscher
http://w3future.com/weblog/
Received on Monday, 18 July 2005 16:25:19 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:41 UTC