[whatwg] WA1: <meta> attribute requirements

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');
>>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

Received on Monday, 18 July 2005 16:25:19 UTC