[Webkit-unassigned] [Bug 15256] Impossible to place an editable selection inside empty elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 22 11:48:58 PST 2007


------- Comment #5 from fredck at fredck.com  2007-11-22 11:48 PDT -------
(In reply to comment #4)
> Obviously, the space needs to be removed when the user starts typing, or clicks
> somewhere else - otherwise, arrow navigation will not work incorrectly,
> stopping at this position twice.

I've tried something similar before, but the above thing is the big problem. It
is quite difficult to provide a stable cleanup mechanism in JavaScript, to
remove the  zero-width space text node. There are too many combinations to
consider, like keyboard navigation, mouse click, API calls, clipboard pasting,
etc... it would be easy to have zero-width space chars laying around, causing
an undesired behavior. At the end, the cleanup code would be so huge that it
would be overkill for a JS app. This is why we need the browser to handle it

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list