| title | Programmatically Determined Link Context | ||
|---|---|---|---|
| key | programmatically-determined-link-context | ||
| unambiguous | true | ||
| objective | true | ||
| input_aspects |
|
The programmatically determined context of a link (or programmatically determined link context) is the set of all elements that are included in the accessibility tree, and have one or more of the following relationships to the link:
- being an ancestor of the link in the flat tree with a semantic role of
listitem; or - being the closest ancestor of the link in the flat tree that generates a block container; or
- being the closest ancestor of the link in the flat tree that has a semantic role of
cellorgridcell; or - being a header cell assigned to the closest ancestor of the link in the flat tree that has a semantic role of
cellorgridcell.
This definition is based on (but not equivalent to) the WCAG definition of programmatically determined link context.
This definition assumes that the HTML document with the link is a document using HTML according to the specification.