-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow ARIA headings in EDUPUB (legacy profile)
This commit fixes the legacy EDUPUB checks by allowing ARIA headings along with native h1-h6 headings. Note: EDUPUB support is a legacy feature of EPUBCheck, since the standard is not actively maintained. Fix #1483
- Loading branch information
Showing
4 changed files
with
154 additions
and
67 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
12 changes: 12 additions & 0 deletions
12
...t/resources/epub-edupub/files/content-document-xhtml/edupub-heading-aria-role-valid.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,12 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<title>Test</title> | ||
<meta charset="UTF-8" /> | ||
</head> | ||
<body> | ||
<section> | ||
<span aria-level="1" role="heading">Heading</span> | ||
</section> | ||
</body> | ||
</html> |
12 changes: 12 additions & 0 deletions
12
...est/resources/epub-edupub/files/content-document-xhtml/edupub-heading-missing-error.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,12 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<title>Test</title> | ||
<meta charset="UTF-8" /> | ||
</head> | ||
<body> | ||
<section> | ||
<!--<h1>Test</h1>--> | ||
</section> | ||
</body> | ||
</html> |