[Webkit-unassigned] [Bug 203944] New: [GTK] 'Strikethrough' editing command reported as 'formatUnderline'
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 7 00:46:36 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=203944
Bug ID: 203944
Summary: [GTK] 'Strikethrough' editing command reported as
'formatUnderline'
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcrha at redhat.com
CC: bugs-noreply at webkitgtk.org
Calling:
webkit_web_view_execute_editing_command (web_view, "Strikethrough");
is reported as "formatUnderline" in document.oninput() callback.
Semi-steps:
a) open web inspector and switch to the Console
b) run there this:
document.oninput = function(op) { console.log("oninput:'" + op.inputType + "'"); }
c) run:
webkit_web_view_execute_editing_command (web_view, "Strikethrough");
from the C code.
Actual result:
The console prints:
oninput:'formatUnderline'
even the HTML does strikethrough.
Expected:
The inputType should be "formatStrikethrough" or similar, definitely not "formatUnderline".
There are several other editing commands, which identify itself with empty string. Maybe most of them are custom WebKit commands, but it does so also for standard commands, like when I execute this on Console:
document.execCommand("strikethrough", false, "")
the printed output on it is:
oninput:''
Having properly identified events helps for correct undo/redo implementation, among other things.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191107/e32e7351/attachment-0001.htm>
More information about the webkit-unassigned
mailing list