mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
23 lines
302 B
Markdown
23 lines
302 B
Markdown
|
# scope
|
||
|
|
||
|
The `scope` scope should be used only on `<th>` elements.
|
||
|
|
||
|
#### References
|
||
|
1. [axe-core, scope](https://dequeuniversity.com/rules/axe/1.1/scope)
|
||
|
|
||
|
## Rule details
|
||
|
|
||
|
This rule takes no arguments.
|
||
|
|
||
|
### Succeed
|
||
|
```jsx
|
||
|
<th scope="col" />
|
||
|
<th scope={scope} />
|
||
|
```
|
||
|
|
||
|
### Fail
|
||
|
|
||
|
```jsx
|
||
|
<div scope />
|
||
|
```
|