Skip to content

Text in text input is selected on focus #39026

Closed as not planned
Closed as not planned

Description

@MichaelMcDonnell

Describe the bug:
If there is already text in a text input, then it is selected on focus. The text should not be selected.

To Reproduce:

  1. Load a page where there is already text in a text input.
  2. Click the text input (the second one in the example).
  3. Notice that the text is selected. Firefox and Chromium do not select the text.

I have created a small example at https://michaelmcdonnell.github.io/servo/selecttext.html that includes some other test cases. There seems to be a couple of different issues with text selection.

Platform:
Linux, Fedora 42, Framework Laptop 13 AMD Ryzen 7040Series

Activity

  1. added
    C-untriaged
    on Aug 29, 2025
  2. added
    I-wrong
    A-content/editing
    and removed
    C-untriaged
    on Aug 29, 2025
  3. mrobinson commented on Jan 19, 2026

    @mrobinson
    Member

    I think this has been fixed now.

  4. MichaelMcDonnell commented on Jan 22, 2026

    @MichaelMcDonnell
    ContributorAuthor

    Thanks @mrobinson! I can confirm that is has been fixed 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/editingI-wrong

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions