Closed Bug 7230 Opened 25 years ago Closed 25 years ago

Option groups do not honor the label attribute

Categories

(Core :: XUL, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kmcclusk, Assigned: pollmann)

References

Details

(Whiteboard: [TESTCASE] OPTGROUP's label attribute not (or incorrectly) implemented)

Attachments

(1 file)

This is similar to bug #3325 except it applies to option groups instead of options. Option groups do not honor the label attribute. The only way a label can be set is by specifying it as content. This does not work <SELECT> <OPTGROUP label="group1"> </OPTGROUP> </SELECT> The following does work: <SELECT> <OPTGROUP>group1 </OPTGROUP> </SELECT>
Whiteboard: [MAKINGTEST] christian@wenz.org
Attached file test case - two optgroups (deleted) —
Whiteboard: [MAKINGTEST] christian@wenz.org → [TESTCASE] OPTGROUP's label attribute not (or incorrectly) implemented
Overview Description: <OPTGROUP label="xxx"> does not work (not displayed) Steps to Reproduce: 1) Load the attachment 2 [details] [diff] [review]) The code contains one select with two optgroups labelled "group1" and "group2"; the first one contains the sub-entries A and B, the other one the sub-entries C and D. Actual Results: one pull-down-menu visible with the entries A, B, C and D Expected Results: A menu similar to the start menu of Win32, with two entries "group1" and "group2". Clicking on "group1", a submenu should open with entries A and B; clicking on "group2", a submenu should open with entries C and D. Build Date & Platform Bug Found: M7 & 1999071108 build (Win32)
*** Bug 12877 has been marked as a duplicate of this bug. ***
Blocks: html4.01
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Erm, this works for me, both on the test case above and on my own: http://www.bath.ac.uk/%7Epy8ieh/internet/projects/mozilla/optgroup.shtml
Thanks for checking this out!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: