I'm not sure I read it that way:

The following example illustrates that
id<http://www.w3.org/TR/html4/struct/global.html#adef-id>and
name <http://www.w3.org/TR/html4/struct/links.html#adef-name-A> must be the
same when both appear in an element's start tag:

<P><A name="a1" id="a1" href="#a1">...</A>


The language is pretty unambiguous. Am I missing something obvious?

-- Yehuda

On 12/31/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:

Yehuda Katz schrieb:
> HTML 4.01, section 12.2.3:

Yes, but this refers to anchors only. Obviously following construct
makes no sense:

<h2 id="the-anchor">...</h2>
<p>
     ... <a name="the-anchor">An anchor</a> ...
</p>


Now there are two anchors in the document with the same namespace. Which
one should the browser focus when clicking on a link pointing to
"#the-anchor".

That is what is meant here. See the illegal example. Id and name
attribute must only be the same, if you declare them both for an anchor,
for example for backwards compatibility if you're serving XHTML as
text/html, compare:
http://www.w3.org/TR/xhtml1/guidelines.html#C_8

The name attribute is deprecated for anchors anyway.

It is perfectly valid to use different names and ids for form elements.


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/




--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to