New issue
Advanced search Search tips

Issue 605936 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

document.execCommand, does not handle state properly strikethrough & underline

Reported by pawel.ci...@gmail.com, Apr 22 2016

Issue description

UserAgent: 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:
 
Components: -Blink Blink>Editing

Comment 2 by yosin@chromium.org, Apr 25 2016

Components: -Blink>Editing Blink>Editing>Command
Status: Available (was: Unconfirmed)
Project Member

Comment 3 by sheriffbot@chromium.org, Aug 8 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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

Comment 4 by yosin@chromium.org, Aug 21 2017

Status: Available (was: Untriaged)

Comment 5 by yosin@chromium.org, Oct 4 2017

Labels: Pri-3
Project Member

Comment 6 by sheriffbot@chromium.org, Oct 4

Status: Untriaged (was: Available)
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
Status: Available (was: Untriaged)

Sign in to add a comment