document.execCommand, does not handle state properly strikethrough & underline
Reported by
pawel.ci...@gmail.com,
Apr 22 2016
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36 Example URL: https://www.froala.com/wysiwyg-editor/ Steps to reproduce the problem: 1. document.execCommand('strikethrough',false,null); //returns true 2. document.execCommand('underline',false,null); //returns true 3. enter some text in editable //text got underline and strikethrough 4. document.execCommand('striketrough' or 'underline',false,null); //returns true 5. document.queryCommandState('striketrough' or 'underline'); //returns true for both 6. type a character in editable and query for command from 4 returns false as expected ///--------------------------------------------------------------------- there is no difference when using styling with tags or css What is the expected behavior? in 5 command executed in 4 should return false, works perfectly in firefox,old opera What went wrong? text, editing on this editor page make a new line click underline,strikethrough type characters, click underline,strikethrough and watch the bug, many other editors are affected Does it occur on multiple sites: Yes Is it a problem with a plugin? N/A Did this work before? N/A Does this work in other browsers? Yes Chrome version: 50.0.2661.75 Channel: stable OS Version: Arch Flash Version:
,
Apr 25 2016
,
Aug 8 2017
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 21 2017
,
Oct 4 2017
,
Oct 4
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 5
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by dtapu...@chromium.org
, Apr 22 2016