New issue
Advanced search Search tips

Issue 800347 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Copying a space after a link at the end of a break line, this space will be ignored.

Reported by mdou...@npr.org, Jan 9 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. Create an html file with the following `<p>This sentence contains <strong>two words</strong> of bold. This sentence contains <em>two words</em> of italics. This sentence contains <strong><em>two words</em></strong> of bolded italics. This sentence contains <a href="http://www.google.com/">two words</a> linked. This sentence contains <a href="http://www.google.com/"><strong>two words</strong></a> linked and bolded. This sentence contains <a href="http://www.google.com/"><em>two words</em></a> linked and italicized. This sentence contains <a href="http://www.google.com/"><strong><em>two words</em></strong></a> linked, bolded and italicized.</p>`
2. Resize the chrome window so that a link that is followed by a space, is at the end of the page (Check the attachment for an example)
3. Copy the entire line
4. Check the HTMl part of the copy, and you will notice that the space after the link has been removed. 
5. If the space exists, try refreshing the page after having correctly resized it

What is the expected behavior?
A space should be correctly placed or marked, so that is can be copied to different editors.

What went wrong?
After copy pasting from a webpage in chrome, a space at the end of the line has been removed.

The following html

<p>This sentence contains <strong>two words</strong> of bold. This sentence contains <em>two words</em> of italics. This sentence contains <strong><em>two words</em></strong> of bolded italics. This sentence contains <a href="http://www.google.com/">two words</a> linked. This sentence contains <a href="http://www.google.com/"><strong>two words</strong></a> linked and bolded. This sentence contains <a href="http://www.google.com/"><em>two words</em></a> linked and italicized. This sentence contains <a href="http://www.google.com/"><strong><em>two words</em></strong></a> linked, bolded and italicized.</p>

Produces the following html in the clip board depending on the view port

<meta charset='utf-8'><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">This sentence contains<span> </span></span><strong style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">two words</strong><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"><span> </span>of bold. This sentence contains<span> </span></span><em style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">two words</em><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"><span> </span>of italics. This sentence contains<span> </span></span><strong style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><em>two words</em></strong><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"><span> </span>of bolded italics. This sentence contains<span> </span></span><a href="http://www.google.com/" style="font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">two words</a><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"><span> </span>linked. This sentence contains<span> </span></span><a href="http://www.google.com/" style="font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><strong>two words</strong></a><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">linked and bolded. This sentence contains<span> </span></span><a href="http://www.google.com/" style="font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><em>two words</em></a><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"><span> </span>linked and italicized. This sentence contains<span> </span></span><a href="http://www.google.com/" style="font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><strong><em>two words</em></strong></a><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"><span> </span>linked, bolded and italicized.</span>

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 63.0.3239.84  Channel: n/a
OS Version: OS X 10.12.3
Flash Version:
 
Screen Shot 2018-01-09 at 10.55.31 AM.png
91.5 KB View Download
paste_result.txt
6.8 KB View Download
html_content.html
611 bytes View Download
Labels: Needs-Triage-M63

Comment 2 by tkent@chromium.org, Jan 11 2018

Components: -Blink Blink>Editing

Comment 3 by yosin@chromium.org, Jan 11 2018

Components: -Blink>Editing Blink>Editing>Selection
Status: WontFix (was: Unconfirmed)
This is "By Design". A space converted into <span>&nbsp; </span>

Comment 4 by mdou...@npr.org, Jan 11 2018

The space in question has not beed added. 

<a href="http://www.google.com/" style="font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><strong>two words</strong></a><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">linked and bolded.


In this part of the copy, there no space nor a non breaking space between the word two and linked. Altho it exists everywhere else it should be.

I am looking at the clipboard content, not when I am pasting.

Comment 5 by mdou...@npr.org, Jan 11 2018

Please check the attached images below that better show the problem.

Screen Shot 2018-01-11 at 7.13.51 AM.png
233 KB View Download
Screen Shot 2018-01-11 at 7.14.13 AM.png
114 KB View Download
Screen Shot 2018-01-11 at 7.14.38 AM.png
268 KB View Download

Sign in to add a comment