Home » HTML » HTML_Template_Flexy » Bug #1273
Request flexy:id attribute
Details
| Submitted | 2004-04-23 19:09 UTC |
|---|---|
| From | ahundiak at ingr dot com |
| Status | No Feedback |
| Package | HTML_Template_Flexy |
| PHP Version | Irrelevant |
| OS | NA |
| Roadmaps | (Not assigned) |
Comments
[2004-04-23 19:09 UTC] ahundiak at ingr dot com
Description:
------------
Using the name attribute to access elements is insufficient since elements with the same name are allowed to exist in the same html page. Furthermore, the name attribute for the form element is going away completely.
Using the html id attribute should work in most cases. However, tabular forms might cause problems in the future as the htnl id attribute must be unique.
Suggest adding a flexy:id attribute then:
1. If present, use flexy:id
2. If present, use id
3. If present, use name
[2004-04-25 13:53 UTC] ahundiak at ingr dot com
As far as I can tell, XHTML and HTML handle buttons in the same fashion. The name attribute is used to group buttons within a form. The id attribute must be unique within a page and is used to access an individual element via scripting.
Here is a little demo:
http://www.cerad.org/flexy/rbutton.php
It shows using the same name but in different forms. And it shows how XHTML validation fails when duplicate id's are generated.
Keep in mind that the client only posts selected attributes. And since the client ensures that only one radio box within a group is selected then you only get one submission.
The last form shows how other elements can have duplicate names as well and still be valid. The client simply posts them all.