Skip to content

Clarity for programmatically determined link context term example #3361

@scottaohara

Description

@scottaohara

The current (and by that I mean since wcag 2.0) programmatically determined link context term example text reads:

In HTML, information that is programmatically determinable from a link in English includes text that is in the same paragraph, list, or table cell as the link or in a table header cell that is associated with the table cell that contains the link.

The issue I see with this is the simple mention of 'list', rather than 'list item' - particularly in relation to the other examples provided.

Without that qualification, it reads that the following would be fine:

<ul>
  <li>All my context</li>
  <li>...</li>
  <li><a href=...>learn more</a></li>
</ul>

but based on all the issues/discussion that already exist concerning this topic, and the additional examples related to tables in that example text, the following (text and link within the same list item) is likely what was actually intended):

<ul>
  <li>All my context <a href=...>learn more</a></li>
  <li>...</li>
</ul>

Additionally, I think to help resolve issues like #2109 - since this example text is already mentioning "in html", it might be a good idea to link the word 'paragraph' to the HTML definition of paragraph, so as to help squash the question of "does paragraph mean 'paragraph' or p element?" without having to amend that text further to indicate that <div>.... <a href>...</a></div> or <blockquote>.... <a href=>...</a> ...</blockquote>, etc. are also providing said context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions