Closed Bug 483762 Opened 15 years ago Closed 10 years ago

Copy of non-breaking space from form field pastes a space

Categories

(Core :: DOM: Editor, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 359303

People

(Reporter: jakub, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729)

If the form field (input, textarea) contains a non-breaking space (U+00A0, Alt+0160 on Windows) and user copies the contents of the form field, a common space (U+0020) is pasted instead. This is true if the contents is written as   and also as a Unicode character.

Reproducible: Always

Steps to Reproduce:
1. <input name="x" value="&nbsp;"> or <input name="x" value=" ">
2. Copy the value of the input.
3. Paste it anywhere.
Actual Results:  
Space is pasted.

Expected Results:  
Non-breaking space is pasted.
Component: General → Editor
Product: Firefox → Core
QA Contact: general → editor
Related to/duplicate of Firefox bug 359303?
Definitely duplicate of bug 359303
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.