- From: Sjoerd Visscher <sjoerd@w3future.com>
- Date: Tue, 19 Jul 2005 01:25:19 +0200
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