[Webkit-unassigned] [Bug 23189] Impossible to place caret at the start of a text node

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 27 12:04:57 PDT 2012


--- Comment #5 from Ted Rust <ted at rusts.net>  2012-06-27 12:04:56 PST ---
(In reply to comment #4)
> It's far from decent, but you may be able to use the fact that WebKit has a special case for <a> elements and allows the caret to be placed at the start inside an <a> element. Otherwise, you could place a zero-width characters at the start of any text node in which you want to place the caret. This is also obviously deeply non-decent.

Thank you much for the reply.  I was thinking along the same lines as you -- that is, put a zero-width character in the text node first, then place the cursor and clean up the zero-width character at some indeterminate future point.  I am trying to do this on keypress, so I need to place the cursor, let the default action happen and then find some way to remove the zero-width character reliably and consistently.

Again, thanks for the speedy and helpful response.  What a pain this is to work around!!!

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