Skip to content

Commit

Permalink
fix: allow 'a11y:certifierCredential' as a link
Browse files Browse the repository at this point in the history
Fixes #1140
  • Loading branch information
rdeltour committed Jun 22, 2020
1 parent ba2da6d commit 484786f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public static enum META_PROPERTIES

public static enum LINKREL_PROPERTIES
{
CERTIFIER_CREDENTIAL,
CERTIFIER_REPORT;
}

Expand Down
6 changes: 6 additions & 0 deletions src/test/java/com/adobe/epubcheck/opf/OPFCheckerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,12 @@ public void testVocabA11y() {
// tests that the a11y vocb and known properties are allowed
testValidateDocument("valid/vocab-a11y-declared.opf", EPUBVersion.VERSION_3);
}

@Test
public void testVocabA11yCredientialsInLink() {
// tests that the a11y:certifierCredential property can be defined as a link
testValidateDocument("valid/vocab-a11y-credentials-in-link.opf", EPUBVersion.VERSION_3);
}

@Test
public void testVocabA11yUndeclared() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" unique-identifier="uid"
xmlns:dc="http://purl.org/dc/elements/1.1/"
prefix="a11y: http://www.idpf.org/epub/vocab/package/a11y/#">
<metadata>
<dc:identifier id="uid">uid</dc:identifier>
<dc:title>Test</dc:title>
<dc:language>en</dc:language>
<meta property="dcterms:modified">2011-08-19T12:00:00Z</meta>
<meta property="a11y:certifiedBy">Accessibility Testers Group</meta>
<link rel="a11y:certifierReport" href="http://example.org/report"/>
<link rel="a11y:certifierCredential" href="https://example.com/a11y/credential"/>
</metadata>
<manifest>
<item id="t001" href="contents.xhtml" properties="nav" media-type="application/xhtml+xml"/>
</manifest>
<spine>
<itemref idref="t001"/>
</spine>
</package>

0 comments on commit 484786f

Please sign in to comment.