http://code.google.com/p/chromium/issues/detail?id=138069 Reproduction steps: 1. Open http://jsfiddle.net/9jHxE/1/ 2. Type "a" in the text field Expected result: "1 a" Actual result: "0 a"
I don't know that this is specced anywhere, but I agree that what we do now is inconsistent and should be changed (i.e. that the selection should be updated first).
Fixed by http://trac.webkit.org/changeset/132983.