[Webkit-unassigned] [Bug 149504] New: Caret missing from <input> after clearing text and calling select()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 23 09:55:12 PDT 2015


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

            Bug ID: 149504
           Summary: Caret missing from <input> after clearing text and
                    calling select()
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: enrica at apple.com, joepeck at webkit.org, rniwa at webkit.org

* SUMMARY
Caret missing from <input> after clearing text and calling select().

* TEST
<input id="x" type="search">
<button id="s">Select</button>
<script>
document.getElementById("s").addEventListener("click", function() {
    var input = document.getElementById("x");
    input.select();
});
</script>

* STEPS TO REPRODUCE
1. Load test page
2. Focus the <input>
3. Type "123"
4. Click the "Select" button
5. Hit Backspace/Delete to clear the text
6. Click the "Select" button
  => <input> is clearly focused, but there is no blinking caret. There should be.

* NOTES
- Firefox and Chrome behave as expected here

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150923/ac915d63/attachment.html>


More information about the webkit-unassigned mailing list