Open Bug 1702709 Opened 3 years ago Updated 3 years ago

Some states in the a11y panel are not updated dynamically (readonly, focused, ...)

Categories

(DevTools :: Accessibility Tools, defect)

defect

Tracking

(Not tracked)

People

(Reporter: jdescottes, Unassigned)

References

Details

This bug is about the states array displayed in the sidebar of the a11y panel.
Some states seem to be updated dynamically correctly in UI (eg enabled) but some are not (focused, readonly).

STRs:

  • open a page with an input (data:text/html,<input>)
  • inspect a11y properties for the input
  • open the list of states
  • (notice "autocomplete" is in the list, "readonly" is not)
  • open split console
  • run document.querySelector("input").setAttribute("readonly", "true")
  • (notice that states are not updated at all)
  • select another node and select back the input
  • (notice that now "readonly" is in the list, and "autocomplete" is gone)

This is also the case for the "focused" state, whenever you focus an element, the state update is not reflected in the UI.

But interestingly if you try to update the "disabled" attribute, then the UI is updated dynamically.

This is problematic for Bug 1702078 where we try to fix the a11y panel initialization, but we get an outdated "focused" state on the initial document.

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.