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

[whatwg] WA1: <meta> attribute requirements

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 18 Jul 2005 14:49:05 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0507181446160.11074@dhalsim.dreamhost.com>
On Mon, 18 Jul 2005, fantasai wrote:
> Ian Hickson wrote:
> > On Mon, 18 Jul 2005, fantasai wrote:
> > 
> > > HTML 4 #REQUIREs the 'content' attribute for <meta>. It does not 
> > > require 'name' probably only because the DTD can't express a 
> > > requirement of "either 'name' or 'http-equiv'": as WA1 notes, a 
> > > <meta> element without a 'name' attribute isn't defining any meta 
> > > data. Is there a reason why these attributes are nonetheless all 
> > > optional in WA1?
> > 
> > What would it mean for them to be required?
> 
> 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.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 18 July 2005 07:49:05 UTC

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