You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/01/01 01:32:48 UTC

DO NOT REPLY [Bug 15023] - Use attribute 'id' instead of 'name' in html:form-Tag

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15023>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15023

Use attribute 'id' instead of 'name' in html:form-Tag





------- Additional Comments From sraeburn@apache.org  2004-01-01 00:32 -------
What about emitting both 'id' *and* 'name' (both equal to the form name) when
the page is in XHTML mode? 

The page still wouldn't validate as XHTML 1.0 strict or XHTML 1.1, but it would
be usable and backwards compatible.

This would be similar to the <html:html> tag which emits both 'lang' and
'xml:lang' attributes even though 'lang' is not valid in strict XHTML.

A possible stricter interpretation would be to *always* emit id = name = form
name.  AFAICT this should always be the case, even for HTML 4.01 (which also
recommends 'id' over 'name'). I don't see that it would cause any problems with
older standards either. 

Can anyone think of a valid case where id != name ?

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org