Closed Bug 548913 Opened 15 years ago Closed 14 years ago

Padding is lost when creating option for select.

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: kevin.krula, Unassigned)

Details

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

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
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.