document.queryCommandState returns true for bold, italic, underline when selecting empty line
Reported by
moein.pa...@gmail.com,
Apr 22 2016
|
||||||
Issue descriptionUserAgent: 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
,
Apr 25 2016
,
May 11 2016
Can you upload a test case? I tried to reproduce the problem, but I couldn't.
,
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
,
Jun 4 2018
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 |
||||||
Comment 1 by jianli@chromium.org
, Apr 22 2016