gfx combobox has no "blank" item

VERIFIED FIXED

Status

()

Core
Layout
P3
normal
VERIFIED FIXED
19 years ago
18 years ago

People

(Reporter: Chris McAfee, Assigned: rods (gone))

Tracking

Trunk
Other
Other
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
Linux, apprunner, gfx-mode.
Visit a bug with no target-fix-field,
when the bug page loads, you'll notice that
the target-fix combobox grabs the "M1" value.

Is this a bug in the combobox?  bugzilla?

Updated

19 years ago
Assignee: kmcclusk → rods
(Assignee)

Updated

19 years ago
Status: NEW → ASSIGNED
Whiteboard: This works for items that have spaces, but doesn't for <option></option>
(Assignee)

Comment 1

19 years ago
I fixed this for options that have spaces <option>  </option>, but not for:
<option></option>
So I will leave this open, but it probably won't get fixed for beta. I have
files a bug on the null case: Bug #13436
Whiteboard: This works for items that have spaces, but doesn't for <option></option> → This works (?-py8ieh) for items that have spaces, but doesn't for <option></option>
Actually, AFAICT it _doesn't_ work for cases where the content is only
whitespace. The whitespace is probably collapsed away.

This test case may come in useful:
   http://www.bath.ac.uk/%7Epy8ieh/internet/projects/mozilla/optgroup.shtml

Note that this works with native-widgets.
(Assignee)

Comment 3

19 years ago
I just tried this and it works:
<select>
<option> </option>
<option>A</option>
</select>
(Reporter)

Comment 4

19 years ago
.. but that isn't the <option></option> case you mention earlier..
I guess you are just benchmarking this?
(Assignee)

Comment 5

19 years ago
Maybe there is some confusion here.
Summary:
<option></option> DOES NOT WORK/DISPLAY
<option> </option> THIS DOES WORK/DISPLAY
(Assignee)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Assignee)

Comment 6

19 years ago
Yes, this is related to Bug #13436
This example now works:
<select size=4>
<option>Hello</option>
<option></option>
<option> </option>
</select>


Fixed.
(Reporter)

Updated

19 years ago
Status: RESOLVED → VERIFIED
Whiteboard: This works (?-py8ieh) for items that have spaces, but doesn't for <option></option> → This works (?-py8ieh) for items that have spaces, but doesn't for < option>< /option>
(Reporter)

Comment 7

19 years ago
Yes, this is working now!  Thanks Rod.
In fact, THIS bug now keeps the un-selected
Target Milestone too :-)
Marking verified.
Whiteboard: This works (?-py8ieh) for items that have spaces, but doesn't for < option>< /option>
You need to log in before you can comment on or make changes to this bug.