Open Bug 1983819 Opened 7 months ago Updated 6 months ago

Ensure updates to referenceTarget causes appropriate updates in accessibility engine

Categories

(Core :: Disability Access APIs, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: alice, Unassigned)

References

(Blocks 1 open bug)

Details

referenceTarget changes should behave identically to ID target changes.

Type: defect → enhancement
Summary: Ensure updates to referenceTarget cause reverse-mappings to be updated appropriately → Ensure updates to referenceTarget causes appropriate updates in accessibility engine

When a reference target changes, which can happen a number of ways, the update needs to be handled as an IDREF target change would:

  • Fire events on any nodes referring to the changing reference target. Aside from notifying clients, this is also needed to ensure the cache in the parent process is updated; e.g. so we don't have a stale label in the cache which is reported to clients.
  • Update the map used for reverse association lookups.

The reference target can change in ways analogous to an IDREF target:

  • the referenceTarget property on a shadow root is added, removed, or changed
  • an element with the matching ID is added or removed from the shadow root's descendants, or a matching ID is added to or removed from one of its descendents
You need to log in before you can comment on or make changes to this bug.