[thelist] ID vs name
Vlad Alexander (XStandard)
vlad.alexander at xstandard.com
Thu Apr 14 19:05:17 CDT 2005
Hi BJ,
The "name" attribute is valid for form elements in XHTML like <input>, <select> and <textarea>. The "name" attribute has been removed for elements like <a>, <map> and <form>.
Regards,
-Vlad
http://xstandard.com
Standards-compliant XHTML editor
BJ wrote:
> In the xhtml specification "ID" is used where "name" used to be. Okay.
> But what happens if you're integrating someone else's form code snippets
> into a site, and they use "name" to specify the attribute? An example
> is the paypal "shopping cart" or "buy it now" code. If I use "name" my
> pages won't validate. But if I change "name" to "ID" what happens on
> the other end? Can I assume they're going to process either attribute
> the same way? or not? There are other examples of this, like the cartit
> shopping cart script, but at least with that one I can look in the code
> and maybe understand what it's doing there, since that's something I
> install on the server I'm using.
>
> Of course, I have a feeling I know what the answer is, and I hate to
> think I'm going to have to go back to writing to html 4.0 spec on pages
> where this happens . . .
>
> bj
>
More information about the thelist
mailing list