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)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 59248

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.
Confirming. Build ID 2002022408 win2k.
Attached file testcase
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
cc'ing jkeiser -
I'm tempted to mark this a dup of bug 59248.
Summary: Option() construcotor is truncating spaces in option text → Option() constructor is truncating spaces in option text
-->
Assignee: rods → jkeiser
*** 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.

Attachment

General

Created:
Updated:
Size: