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/