[Webkit-unassigned] [Bug 26526] Add support for input events (oninput) to contentEditable elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 10 09:54:14 PDT 2010


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





--- Comment #6 from Erik Arvidsson <arv at chromium.org>  2010-05-10 09:54:12 PST ---
(From update of attachment 55516)
> +// A trivial case: inserting text should dispatch the event
> +var target0 = document.getElementById("target0");
> +target0.addEventListener("input", function(evt) { fired(evt, "target0", "Text should be inserted here:Text"); });
> +var target0TextLength = target0.firstChild.data.length;
> +sel.setBaseAndExtent(target0.firstChild, target0TextLength, target0.firstChild, target0TextLength);
> +document.execCommand("insertText", false, "Text");
> +expectedInputEventCount++;

If script changes should not dispatch input events, then execCommand should not either. You can use eventSender to test user input.

-- 
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