Yehuda Katz schrieb:
> 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?

You quoted the important part yourself already:

"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."

=> Meaning you cannot create two anchors with the same name/id on two 
*different* elements. See the illegal example. Or in other words, you 
can only have one anchor of its kind in a 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."

=> The list of elements to which the rules apply here does not include 
form elements. The name attribute of a form element is *not* its unique 
identifier, that's important (you can have form elements with the name 
of course).



-- Klaus

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

Reply via email to