Created attachment 47762 [details] Test Case (Disappearing caret) To reproduce: - Open the attached test case. - Backspace over the 'b' character. - Backspace over the 'a' character (the final character remaining in the text field). - The caret has now disappeared, although the text field is still highlighted as though it were focused. Have reproduced this issue in: - Safari 4.0.4 (531.21.10) - Google Chrome 4.0.249.78 Expected behaviour: After backspacing over the character in the text field, the caret should appear at the end of the text. This is the behaviour of Mozilla Firefox 3.5.7 and Opera 10.10.
Created attachment 47763 [details] Workaround (Disappearing Caret) Attached a workaround. When deleting the final character of the text field, the caret does not disappear.
Created attachment 62030 [details] Example of caret disappearing Setting input.value to '' during the oninput event causes the caret to disappear. To repeat, open file webkit_caret_bug.html, focus to the first input box and press a key, and caret is lost.
Both attached test cases work (the caret does not disappear) in Google Chrome 12.0.742.112. Resolved as fixed.
Works in WebKit nightly r89812, too.