[Webkit-unassigned] [Bug 71771] Inserting empty html moves caret

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 9 13:18:26 PDT 2012


--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org>  2012-04-09 13:18:26 PST ---
(In reply to comment #2)
> There is a code to check firstChild in "performTrivialReplace":-
>     if (!fragment.firstChild() || fragment.firstChild() != fragment.lastChild() || !fragment.firstChild()->isTextNode())
>         return false;
> Is there any other case when the firstchild be null other then the case when inserting empty string?

Maybe when the inserted text wasn't empty but some event listener modified the text to be inserted? e.g. <input maxlength=0>

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