-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(prohibited-attr): always report incomplete if there is text in th…
…e subtree (#3347) * fix(prohibited-attr): always report incomplete if there is text in the subtree Subtree text wasn't computed for elements that are not named from content. To force this, subtreeDescendant: true had to be passed. This PR also significantly improves the messages of the prohibited-attr check, which was the cause of some confusion. * more tests
- Loading branch information
1 parent
d92a7e5
commit 2e27dca
Showing
6 changed files
with
139 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<div id="incomplete0" aria-label="foo">Foo</div> | ||
<div id="incomplete1" aria-labelledby="missing">Foo</div> | ||
<my-custom-elm id="incomplete2" aria-expanded="true">Foo</my-custom-elm> | ||
<div id="incomplete3" aria-label="foo" role="code">Foo</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
{ | ||
"description": "aria-allowed-attr incomplete tests", | ||
"rule": "aria-allowed-attr", | ||
"incomplete": [["#incomplete0"], ["#incomplete1"], ["#incomplete2"]] | ||
"incomplete": [ | ||
["#incomplete0"], | ||
["#incomplete1"], | ||
["#incomplete2"], | ||
["#incomplete3"] | ||
] | ||
} |