Skip to content

Commit

Permalink
Update _rules/presentational-children-no-focusable-content-307n5z.md
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Duarte <[email protected]>
  • Loading branch information
dan-tripp-siteimprove and carlosapaduarte authored Sep 21, 2023
1 parent 78642d0 commit e5f76d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ None of the roles involved in this semantic table have [presentational children]

#### Inapplicable Example 2

This `<a>` element has a `link` role, which does not have [presentational children][]. So this element - perhaps surprisingly - does not fail this rule, because it's inapplicable. This is the case even though it's invalid HTML. Any time there's a link as the <i>outer</i> element, that will be inapplicable under this rule. (If the elements were switched - that is, if the `<button>` element contained the `<a>` element - then that would fail this rule.)
This `<a>` element has a `link` role, which does not have [presentational children][]. So this element does not fail this rule, because it's inapplicable.

```html
<a href="https://w3.org"><button>W3C Website</button></a>
Expand Down

0 comments on commit e5f76d7

Please sign in to comment.