Closed
Bug 127851
Opened 24 years ago
Closed 24 years ago
Option() constructor is truncating spaces in option text
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: psunil, Assigned: john)
Details
Attachments
(2 files)
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95)
BuildID: Mozilla/5.0
Consider the following example:
document.formName.selectName.options[0] = new Option(" ", "");
When the browser displays it, the 5 spaces provided in the Option object are
ignored and only one space is considered.
Reproducible: Always
Steps to Reproduce:
1.Check the above description.
2.
3.
Actual Results: The spaces provided in new Option javascript object are
ignored.
Expected Results: older netscape versions display the spaces in Option object
as required.
Additional Info: All latest versions also have the same problem.
Comment 1•24 years ago
|
||
Confirming. Build ID 2002022408 win2k.
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
Confirming bug with recent builds on WinNT and Linux.
OS : Win95 ---> All.
Browser, not engine. Reassigning to HTML Form Controls. Not sure who's
repsonsible for displaying the spaces; please reassign as necessary -
Note, a similar problem occurs whenever there are spaces in the Option text
argument. That is, any time there are two or more single-space characters
in a row, the option text is printed with at most one of them, and none at
all if they are leading spaces. For example:
new Option(" XXX YYY ZZZ", "");
displays "XXX YYY ZZZ"
I will attach this testcase below.
Assignee: rogerl → rods
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → HTML Form Controls
Ever confirmed: true
OS: Windows 95 → All
QA Contact: pschwartau → madhur
Summary: The scripting engine ignores the spaces provided in the javascript Option object → Option() construcotor is truncating spaces in option text
Comment 4•24 years ago
|
||
Comment 5•24 years ago
|
||
cc'ing jkeiser -
Updated•24 years ago
|
Summary: Option() construcotor is truncating spaces in option text → Option() constructor is truncating spaces in option text
Comment 8•24 years ago
|
||
*** This bug has been marked as a duplicate of 59248 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•