New issue
Advanced search Search tips

Issue 606047 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

document.queryCommandState returns true for bold, italic, underline when selecting empty line

Reported by moein.pa...@gmail.com, Apr 22 2016

Issue description

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

Steps to reproduce the problem:
1. click inside an element with attribute contenteditable=true to edit its content
2. select an empty line
3. call document.queryCommandState()
4. It returns true for bold, italic, underline

What is the expected behavior?
should return false for bold, italic, underline

What went wrong?
document.queryCommandState() returned wrong values for bold, italic, underline when selecting an empty line

Did this work before? No 

Chrome version: 50.0.2661.87  Channel: stable
OS Version: 10
Flash Version: Shockwave Flash 21.0 r0
 

Comment 1 by jianli@chromium.org, Apr 22 2016

Components: -Blink Blink>Editing
Similar to 584939.

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

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

Comment 3 by joone....@intel.com, May 11 2016

Can you upload a test case?  I tried to reproduce the problem, but I couldn't.
Project Member

Comment 4 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 5 by yosin@chromium.org, Aug 21 2017

Status: Available (was: Untriaged)

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

Labels: Pri-3

Comment 7 by yosin@chromium.org, Jun 4 2018

Status: WontFix (was: Available)
Mark WontFix since I could not reproduce and no example to reproduce this.

Demo:
https://jsfiddle.net/46mssfsc/1/

Sign in to add a comment