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

Re: name="" deprecated in XHTML

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Tue, 01 Jul 2008 08:37:08 +0100
Message-ID: <4869DEA4.6050109@googlemail.com>
To: Sebastian Mendel <lists@sebastianmendel.de>
CC: Johannes Koch <koch@w3development.de>, www-html@w3.org

Benjamin Hawkes-Lewis wrote:
> 1. NAME as unique element identifier (A, APPLET, FORM, FRAME, IFRAME, 
> IMG, MAP); deprecated in favour of ID. If ID is present on the same 
> element, the values must be the same. This attribute has the NAME data 
> type ( http://www.w3.org/TR/html401/types.html#type-name ).

Sorry, NAME as unique identifier has data type CDATA, whereas ID is type 
ID ( http://www.w3.org/TR/html4/types.html#type-id ). I always get that 
confused.

Conceivably that holds a clue to David Woolley's pondering ("The only 
thing I don't understand is why it's uses as an alternative to @id 
wasn't deprecated in HTML 4."). The spec notes:

"Authors should consider the following issues when deciding whether to 
use id or name for an anchor name: ... The name attribute allows richer 
anchor names (with entities)."

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

--
Benjamin Hawkes-Lewis
Received on Tuesday, 1 July 2008 07:37:46 GMT

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