Closed
Bug 240470
Opened 21 years ago
Closed 17 years ago
Adding an empty optgroup to an empty select using DOM results in extra space
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: martin.thomson, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 An extra line appears in a select (size > 1) element above an optgroup that is added using DOM. This extra line persists when options are added to the optgroup, but disappears when more elements are added to the select. Reproducible: Always Steps to Reproduce: 1. Create a page with an empty select element with size > 1. 2. Using DOM, add an optgroup element to the select. 3. Using DOM, add an option element to the optgroup. Actual Results: 2. An empty line appears above the optgroup label. 3. The empty line persists. Note that reversing steps 2 and 3 works fine - but this isn't always easy. Expected Results: 2. The behaviour here probably doesn't matter - an empty optgroup is useless. 3. No empty line should appear. The rendering of the page is inconsistent with the rendering of the same data at load time.
Reporter | ||
Comment 1•21 years ago
|
||
Comment 3•19 years ago
|
||
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
I hit this bug today. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070221 SeaMonkey/1.1.1 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070226 Fedora/1.5.0.10-1.fc6 Firefox/1.5.0.10 pango-text
![]() |
||
Comment 6•17 years ago
|
||
Fixed by patch for bug 314879.
You need to log in
before you can comment on or make changes to this bug.
Description
•