Re: name="" deprecated in XHTML
Benjamin Hawkes-Lewis <[email protected]>
| Newsgroups | gmane.comp.web.html.general |
|---|---|
| Message-ID | <[email protected]> |
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