Closed Bug 239693 Opened 22 years ago Closed 20 years ago

When copying a line with hidden spaces, contrary to what you see, a hidden space before characters is in copied data

Categories

(Core :: DOM: Selection, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ryukbk, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040403 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040403 When you have HTML like this: <html> <head></head> <body> Copy This Line </body> </html> you'll see only "Copy This Line" without preceding/trailing space characters because it's HTML. Then, drag mouse onto "Copy This Line" and copy it, and paste it in somewhere. The copied data is " Copy This Line", with only trailing space character removed. Reproducible: Always Steps to Reproduce: Actual Results: The trailing space character is removed in copying. Expected Results: Both preceding and trailing space characters should be removed in copying.
Attached file testcase
testcase html
Apperently this is a dupe of bug 82811 via bug 157379 but I will wait untill pi's question is answered. I see this on LInux 2004050707
OS: Windows XP → All
Component -> Selection
Component: Browser-General → Selection
Assignee: general → selection
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: general
WFM with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050802 Firefox/1.0+
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: