Skip to content

Commit 9bc1a89

Browse files
committed
Add inapplicable example with empty lang
1 parent 24a9bcd commit 9bc1a89

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

_rules/html-page-lang-valid-bf051a.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,27 @@ This rule does not apply to `svg` elements.
138138
<svg xmlns="http://www.w3.org/2000/svg" lang="fr"></svg>
139139
```
140140

141+
<details>
142+
<sumary>## Boundary Examples</sumary>
143+
144+
These examples are not normative and not require for consistent implementations. They illustrate limitations and boundaries of the rule. Passed and Inapplicable examples in this category are likely to fail the rule's accessibility requirement, showing how the rule is only a partial test. Testing tools and methodologies are encouraged to be more clever than the rule, and to report the correct outcome for these examples. Therefore, they are not required for consistent implementation.
145+
146+
### Inapplicable Examples
147+
148+
#### Inapplicable Example 1
149+
150+
This `html` element has an empty `lang` attribute. It is not applicable for this rule, but nonetheless fails [Success Criterion 3.1.1 Language of Page][sc311]. It also fails rule [HTML page has non-empty title](https://www.w3.org/WAI/standards-guidelines/act/rules/b5c3f8/).
151+
152+
```html
153+
<html lang="">
154+
<body>
155+
I love ACT rules.
156+
</body>
157+
</html>
158+
```
159+
160+
</details>
161+
141162
[grandfathered tags]: https://www.rfc-editor.org/rfc/rfc5646.html#section-2.2.8
142163
[iso 639.2]: https://www.loc.gov/standards/iso639-2/php/code_list.php 'ISO 639.2: Codes for the Representation of Names of Languages'
143164
[region subtag]: https://www.rfc-editor.org/rfc/rfc5646.html#section-2.2.4 'Definition of region subtag'

0 commit comments

Comments
 (0)