pull/815/head
Rich Harris 8 years ago
parent b3409ad405
commit 915c1835a4

@ -73,6 +73,11 @@ export default function a11y(
validator.warn(`A11y: Avoid using autofocus`, attribute.start);
}
// scope
if (name === 'scope' && node.name !== 'th') {
validator.warn(`A11y: The scope attribute should only be used with <th> elements`, attribute.start);
}
attributeMap.set(attribute.name, attribute);
});

@ -0,0 +1,10 @@
[
{
"message": "A11y: The scope attribute should only be used with <th> elements",
"loc": {
"line": 1,
"column": 5
},
"pos": 5
}
]
Loading…
Cancel
Save