init source
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
# 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 />
|
||||
```
|
||||
Reference in New Issue
Block a user