Padding is lost when creating option for select.

RESOLVED INCOMPLETE

Status

()

RESOLVED INCOMPLETE
9 years ago
8 years ago

People

(Reporter: kevin.krula, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 2011-1-30])

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

Style sheet contains:
option {
    white-space : pre;
}
javascript contains:
var label = " 1342 |     34 |      | 4 |     90";
var value = "key1";

var newOption = theDoc.createElement("option");
listId.add(newOption, listId.options[null]);
newOption.value = value;
newOption.text = label;

The option text is displayed without padding: "1342 | 34 | | 4 | 90";
Padding is present prior to Firefox 2

Reproducible: Always

Steps to Reproduce:
Style sheet contains:
option {
    white-space : pre;
}
javascript contains:
var label = " 1342 |     34 |      | 4 |     90";
var value = "key1";

var newOption = theDoc.createElement("option");
listId.add(newOption, listId.options[null]);
newOption.value = value;
newOption.text = label;

The option text is displayed without padding: "1342 | 34 | | 4 | 90";
Padding is present prior to Firefox 2
Actual Results:  
option tag without padding: "1342 | 34 | | 4 | 90";

Expected Results:  
option tag with padding  " 1342 |     34 |      | 4 |     90";
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles

You can also try to reproduce in Firefox 4 Beta 8 or later, there are many improvements in the new version, http://www.mozilla.com/en-US/firefox/all-beta.html
Whiteboard: [CLOSEME 2011-1-30]
No reply, INCOMPLETE. Please retest with Firefox 3.6.13 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.