[Webkit-unassigned] [Bug 17594] queryCommandState returns false for Underline command when no selection is made
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 4 10:06:49 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=17594
Alessandro Zifiglio <alessandrozifiglio at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alessandrozifiglio at hotmail.
| |com
--- Comment #4 from Alessandro Zifiglio <alessandrozifiglio at hotmail.com> 2010-08-04 10:06:49 PST ---
when there is no text selected and an execCommand for underline is performed, immediately after, executing queryCommandState('underline') returns false. However the document is in the underline state because if you type you can see the results are underlined. You can observe the same behavior when doing an execCommand on strikethrough as well.
This is inconsistent behavior and :
1) it's inconsistent with the bold/italic commands because those work as expected under these conditions
2) when you have performed execCommand on underline/strikethrough and then furhter performing an execCommand on bold/italic, you cannot toggle back underline/strikethrough, without toggling back bold/italic first. So as you can note, it gets even more worse and I cannot think of a simple workaround to fix this problem on my end.
3)This works just fine on all other browsers that support contenteditable.
Infact if you login to gmail on google chrome or safari, clicking underline in the editor without selecting text shows this problem.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list