Closed Bug 17663 Opened 25 years ago Closed 25 years ago

<optgroup> doesn't close option when </option> is missing

Categories

(Core :: DOM: HTML Parser, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: rods, Assigned: harishd)

References

Details

Attachments

(1 file)

When an option is missing the closing tag </option> and precedes an optgroup the
option doesn't get closed correctly:

This doesn't work:
<SELECT name="name">
   <OPTION value="a">Option with no close tag
   <OPTGROUP label="OptGroup">
     <OPTION label="Option in OptGroup" value="b">Option in OptGroup</OPTION>
   </OPTGROUP>
</SELECT>

See attachment.
Attached file Shows problem
Note how the drop down has three lines, but it is a single selectable item. If
you put in the closing </option> tag it has three lines and the two option
elements are selectable and the optgroup is not (which is correct)
Status: NEW → ASSIGNED
Blocks: 17711
Assignee: rickg → harishd
Status: ASSIGNED → NEW
Here -- you can have this one.
Target Milestone: M12
Status: NEW → ASSIGNED
Fixed in my tree awaiting opportunity to check in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed by update to elementtable.
Works for Me
Platform: PC
OS: Windows 98
Mozilla Version: 2000100508

Marking as Verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: