W3C home > Mailing lists > Public > www-html@w3.org > June 2008

Re: name="" deprecated in XHTML

From: Johannes Koch <koch@w3development.de>
Date: Thu, 26 Jun 2008 09:48:00 +0200
Message-ID: <486349B0.3080900@w3development.de>
To: www-html@w3.org

Johannes Koch schrieb:
> 
> David Woolley schrieb:
> 
>> (strictly speaking you could probably have both ID and NAME, with 
>> different values)
> 
> For a element, this is questionable.
> <http://www.w3.org/TR/html4/struct/links.html#adef-name-A>:
> 
>> Note that this attribute shares the same name space as the id attribute
> 
> I read this as: name and id attributes for the same a element must have 
> the same values.

And <http://www.w3.org/TR/html4/struct/links.html#h-12.2.3>:

The id and name attributes share the same name space. This means that 
they cannot both define an anchor with the same name in the same 
document. It is permissible to use both attributes to specify an 
element's unique identifier for the following elements: A, APPLET, FORM, 
FRAME, IFRAME, IMG, and MAP. When both attributes are used on a single 
element, their values must be identical.

-- 
Johannes Koch
In te domine speravi; non confundar in aeternum.
                             (Te Deum, 4th cent.)
Received on Thursday, 26 June 2008 07:48:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:14 GMT