Open Jym77 opened 3 years ago
R81 uses the same definition of "programmatically determined link context" as the associated ACT-R rule: https://act-rules.github.io/rules/5effbb#programmatically-determined-link-context
Putting this on the backlog until we have a resolution to https://github.com/act-rules/act-rules.github.io/issues/1572.
Since the ACT rule seems at risk, we're parking this for now.
The
<div>
are ignored in the context (https://github.com/Siteimprove/alfa/blob/main/packages/alfa-rules/src/sia-r81/rule.ts#L134-L162) and therefore we incorrectly flag these links.Proposed fix: consider any element with text node children as part of the context. This should remove the "structural"
<div>
but keep the meaningful ones. Might need a bit more tweak to avoidbeing two contexts because of the
<span>
.