Skip to content

Mutating the tabindex content attribute isn't changing focusability #25713

@pshaughn

Description

@pshaughn

I'm not sure whether there's a specific test for adding tabindex, but html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html case "Removing the tabindex attribute from a div" tests removing it and fails.

Servo only checks for tabindex in HTMLElement::update_sequentially_focusable_status, which is only called from HTMLElement::bind_to_tree, so any changes to the attribute on an already-inserted node will have no effect on focusability (unless the node happens to also get inserted into a tree again).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domInteracting with the DOM from web content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions