forked from dequelabs/axe-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: epub:type non-XML parsing fallback for pagebreak role
- Loading branch information
1 parent
97fc9c7
commit 4c95bff
Showing
5 changed files
with
48 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"description": "pagebreak-label test", | ||
"rule": "pagebreak-label", | ||
"violations": [["#p3"], ["#p4"], ["#p5"], ["#p9"]], | ||
"passes": [["#p1"], ["#p2"], ["#p6"]] | ||
} |
26 changes: 26 additions & 0 deletions
26
test/integration/rules/pagebreak-label/pagebreak-label.xhtml
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:epub="http://www.idpf.org/2007/ops" | ||
xml:lang="en" | ||
> | ||
<head> | ||
<title>pagebreak-label test</title> | ||
<meta charset="utf8" /> | ||
</head> | ||
<body> | ||
<h1>Loomings</h1> | ||
<p>Call me Ishmael.</p> | ||
|
||
<span id="p1" role="doc-pagebreak" title="p1" /> | ||
<span id="p2" epub:type="pagebreak" title="p2" /> | ||
<span id="p3" role="doc-pagebreak" /> | ||
<span id="p4" epub:type="pagebreak" /> | ||
<span id="p5" role="doc-pagebreak"></span> | ||
<span id="p6" role="doc-pagebreak" aria-label="p6" /> | ||
<div> | ||
<span id="p9" epub:type="pagebreak" role="doc-pagebreak" aria-labelledby="p9desc"></span> | ||
<span id="p9desc" aria-hidden="true" hidden="hidden">p9</span> | ||
<span aria-hidden="true" class="page-number">Page break 9</span> | ||
</div> | ||
</body> | ||
</html> |