New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 703686 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 769793
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

HMTL tags from text altered during the copy-paste process

Reported by hiei3600@gmail.com, Mar 21 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce the problem:
1. Open a webpage with a built-in HTML editor such as the very own Google's Google Sites(Classic Version)
2. Edit the page using the HTML box,adding the following line:
[<b><a href="http://www.google.com" style="text-decoration:none"><span style="color:rgb(0,255,0)"><font size="6">Text</font></span></a></b>]
3. The above line is just a sample hyperlink text which generates the green-colored word"[Text]",in the page,which is a link that leads to www.google.com
4. Exit the HTML mode and save the page
5. Go back into edit mode and select the text on screen(the green colored"[Text]"word)
6. Copy it,and paste it on the same page,again,not using the HTML editor here,just the normal page editor.
7. Go back to HTML editor and check the new copied text,it should be now:
<span style="font-size: 13.3333px;">[</span><b style="font-size: 13.3333px;"><a href="http://www.google.com/" style="text-decoration-line: none;"><span style="color: rgb(0, 255, 0);"><font size="6">Text</font></span></a></b><span style="font-size: 13.3333px;">]</span>
8. As seen, the tag "style="text-decoration:none" has been changed to "style="text-decoration-line: none;"
9. The above tag is not compatible with Google Sites's HTML editor and possibly other web HTML editors as well
10. Upon saving the page,Google Sites automatically remove the incompatible tag,returning an altered,underlined text instead of the non-underlined one.

What is the expected behavior?
The HTML tag "style="text-decoration:none" should be copied exactly as it is,and not altered,this issue does not appear in any other web browser I tested such as Microsoft Edge,Mozilla Firefox and Opera.

What went wrong?
HTML tag "style="text-decoration:none" altered to "style="text-decoration-line: none;", thus causing incompatibility problem with some HTML editors such as the very own Google's Google Sites(Classic Version). 

Did this work before? Yes 56.0.2924.87 and earlier

Chrome version: 57.0.2987.98  Channel: stable
OS Version: 10.0
Flash Version:
 

Comment 1 by hiei3600@gmail.com, Mar 21 2017

Note again that to reproduce this bug one should copy the sample text proposed above already processed (not the raw HTML code),e.g. copy "[Text]"(resulting from the HTML code above) and not the"[<b><a href=...etc" to get the altered HTML text.
Labels: Needs-Triage-M57
Cc: sureshkumari@chromium.org
Labels: Needs-Feedback
hiei3600@ could you please provide a Html file to triage the issue further from TE end.

Thanks.

Comment 4 by hiei3600@gmail.com, Apr 6 2017

I'm not sure what to include in this html file, I just added the example I already provided in my report.
Sample.html
144 bytes View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Apr 6 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sureshkumari@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 Deleted

This also impacts paste experience in docs.google.com:
Step 1: copy the text with underline in this page:
https://www.w3schools.com/cssref/playit.asp?filename=playcss_text-decoration&preval=underline
Step 2: paste to a doc at docs.google.com

Expected: the text can be pasted as it is (with underline)
Actual: the text is pasted without underline


Comment 8 by hiei3600@gmail.com, Feb 9 2018

It's been almost a year and the bug still persist in the latest Chrome version.

Can someone even officially confirm this bug?
Components: Blink>DataTransfer
Components: Blink>Editing
Cc: pwnall@chromium.org
Status: Untriaged (was: Unconfirmed)
The text seems to have the same properties, but no underline. I wonder if this is an issue of whitelisted styles?

+pwnall
I've tested this yet again on the latest Chrome Version(ver.64.0.3282.186),still happening just as described.

What I copied:

[<b><a href="http://www.google.com" style="text-decoration:none"><span style="color:rgb(0,255,0)"><font size="6">Text</font></span></a></b>]

What it pasted:

[<b><a href="http://www.google.com/" style="text-decoration-line: none;"><span style="color: rgb(0, 255, 0);"><font size="6">Text</font></span></a></b>]</div>
Mergedinto: 769793
Status: Duplicate (was: Untriaged)
issue 769793 has more details, merging

Sign in to add a comment