Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.1
-
Fix Version/s: None
-
Component/s: TagLib
-
Labels:
-
Environment:WinXP on Intel
Description
The g:form tag supports the attributes name and id.
But name is not XHTML strict compatibel, so it should not be used further.
The id attribute is used to create the submit url of the form. It has nothing to do with the usual css id attribute. But it prevents the usage of it. CSS id can be set only indirectly via the name attribute -> which will break xhtml compatibility.
So currently it is not possible to produce a xhtml strict compatibel form with and id attribute to customize via CSS and use in DOM operations.
Suggestion: rename the "id" attribute to something else like "objectId" or "instanceId" so "id" can be used for CSS / DOM.
The same id-stuff (don't now about xhtml strict compatibility) for other TAGs like:
-createLink
-link
-remoteXXX
-uploadForm
It may be complicated to re-purpose the id attribute of g:form. We could use a new attribute name for the dom id, for example dom_id.
Marius