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

[whatwg] WA1: <meta> attribute requirements

From: <sjoerd@w3future.com>
Date: Mon, 18 Jul 2005 09:30:34 -0700 (PDT)
Message-ID: <1344.217.123.226.234.1121704234.squirrel@217.123.226.234>
>> 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.

--
Sjoerd Visscher
http://w3future.com/weblog/
Received on Monday, 18 July 2005 09:30:34 UTC

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