[Webkit-unassigned] [Bug 185897] AX: setValue on contenteditable should preserve whitespace
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 25 09:56:50 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=185897
--- Comment #15 from Darin Adler <darin at apple.com> ---
If we’re trying to do the equivalent of typing, then we should be using code from the editing machinery. Besides handling spaces correctly, that will make things like undo work.
For example, when someone uses QuickType or an input method to type a sequence of characters all at once, that’s not done by directly mutating the DOM.
I only have a moment to write this comment, so I can’t point at exactly the right code to use but most of the relevant code is in the editing directory. Looking at execCommand can also be helpful.
--
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/20180525/c7a586da/attachment-0001.html>
More information about the webkit-unassigned
mailing list