Invalid <optgroup> HTML markup generated
----------------------------------------
Key: STS-853
URL: http://www.stripesframework.org/jira/browse/STS-853
Project: Stripes
Issue Type: Bug
Components: Tag Library
Affects Versions: Release 1.5.6
Environment: Tomcat 6
Reporter: Cliff Jones
Priority: Minor
The invalid <optgroup> tag is generated using <stripes:options-collection> tag
when "partial" attribute is used within a <stripes:form> tag.
(reformatted for readability)
<select id="cboSupervisor" name="criteria.supervisor" class="DropBox"
onchange="supervisorSelected(this);">
<option value="">--- All ---</option>
<optgroup label="Active" />
<option value="204230">Bartlett, Roberta</option>
<option value="306796">Beasley, Teresa</option>
<option value="237550">Bersch, Alisha</option>
<optgroup label="Retired" />
<option value="251149">Acting TL, Ohm</option>
<option value="155878">Auer, Kimberly</option>
</select>
The invalid use of non-body optgroup element results in the browser (IE) *not*
providing the indentation for options belonging to that group when the select
is replaced in the DOM via Ajax.
Note: The CORRECT output is:
<select id="cboSupervisor" name="criteria.supervisor" class="DropBox"
onchange="supervisorSelected(this);">
<option value="">--- All ---</option>
<optgroup label="Active" >
<option value="204230">Bartlett, Roberta</option>
<option value="306796">Beasley, Teresa</option>
<option value="237550">Bersch, Alisha</option>
</optgroup>
<optgroup label="Retired" >
<option value="251149">Acting TL, Ohm</option>
<option value="155878">Auer, Kimberly</option>
</optgroup>
</select>
For further information on the correct use of <optgroup>, please see:
http://www.w3schools.com/tags/tag_optgroup.asp
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development