W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2008

[whatwg] WA1: <meta> attribute requirements

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 22 Apr 2008 09:59:36 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0804220958580.25668@hixie.dreamhostps.com>
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.

Actually, the spec has since changed and even the meta element in the 
above example is non-conforming.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 22 April 2008 02:59:36 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:02 UTC