Issue metadata
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 descriptionUserAgent: 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:
,
Mar 27 2017
,
Apr 6 2017
hiei3600@ could you please provide a Html file to triage the issue further from TE end. Thanks.
,
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.
,
Apr 6 2017
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
,
Apr 21 2017
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
,
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?
,
Feb 25 2018
,
Feb 27 2018
,
Mar 5 2018
The text seems to have the same properties, but no underline. I wonder if this is an issue of whitelisted styles? +pwnall
,
Mar 5 2018
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>
,
Mar 5 2018
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by hiei3600@gmail.com
, Mar 21 2017