Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example markup for consistency and errors #2967

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/rule/no-empty-headings.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This rule **forbids** the following:
```

```hbs
<h*><span aria-hidden="true">Inaccessible text<span></h*>
<h*><span aria-hidden="true">Inaccessible text</span></h*>
```

This rule **allows** the following:
Expand Down
2 changes: 1 addition & 1 deletion docs/rule/no-invalid-aria-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This rule **forbids** the following:

```hbs
<input type="text" aria-not-real="true" />
<div role="region" aria-live="bogus">Inaccessible live region</div>',
<div role="region" aria-live="bogus">Inaccessible live region</div>
<button type="submit" disabled="true" aria-disabled="123">Submit</button>
```

Expand Down
2 changes: 1 addition & 1 deletion docs/rule/require-lang-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This rule **forbids** the following:
```

```hbs
<html lang="abracadabra"></Html>
<html lang="abracadabra"></html>
```

This rule **allows** the following:
Expand Down
4 changes: 2 additions & 2 deletions docs/rule/require-valid-alt-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ Numbers are not considered valid alt text, and this rule disallows using only nu
This rule **forbids** the following:

```hbs
<img src="rwjblue.png">
<img src="rwjblue.png" />
<img src="foo" alt="Photo of foo being weird." />
<img src="foo" alt="YourCompany logo" />
<img src="bar" alt="Image of me at a bar!" />
<img src="baz" alt="Picture of baz fixing a bug." />
<img src="b52.jpg" alt="52" />
<img src="foo" alt="foo as a banana" role="presentation">
<img src="foo" alt="foo as a banana" role="presentation" />
```

This rule **allows** the following:
Expand Down