[Webkit-unassigned] [Bug 154496] Only first character inserted into a element in contenteditable mode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 25 08:11:07 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=154496

Alberto Fernandez <sinspiral at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sinspiral at gmail.com

--- Comment #7 from Alberto Fernandez <sinspiral at gmail.com> ---
I'm also suffering this bug. For me is even worse, since on my custom editor the user can edit the anchor links themselves.

This is an example of markup the user can end up with which gives the issues:
"<a href="#" contenteditable="true"><b>Select all the text and try to type more than two characters</b></a>"


Steps to Reproduce
------

 1. Open my live codepen at https://codepen.io/sinspiral/pen/xLbdqR
 2. Select all the text.
  * It doesn't matter if using Ctrl/Cmd+A, using the mouse, or the key arrows with Shift pressed.
 3. Type more than two characters, i.e. "lorem ipsum"

Expect
------
The new text typed will appear, so the content will be "lorem ipsum".

Result
------

After the second character is pressed or the whole content dissappears, or only the first character happens. Then you cannot continue typing anymore.

Platform:
------

Webkit Browsers where I can reproduce it:
 * Safari Version: 10.1.2 (12603.3.8)
 * Chrome Version 59.0.3071.115 (Official Build) (64-bit)
 * PhantomJS: Version 2.1.1
 * QtWebkit (annulen): 5.212.0 Alpha 2

OS Version:
 * macOS 10.12.6
 * Windows 10

-- 
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/20170725/4b0f1e07/attachment-0001.html>


More information about the webkit-unassigned mailing list