Skip to content

Commit

Permalink
Add test for schema changes for empty lang attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
tofi86 committed Jul 10, 2017
1 parent bcadc90 commit 0fdbd05
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/com/adobe/epubcheck/ops/OPSCheckerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -928,4 +928,11 @@ public void testValidateXHTMLEmptyClass_EPUB2_Valid()
EPUBVersion.VERSION_2);
}

@Test
public void testValidateEmptyLangAttribute_EPUB3_Valid()
{
testValidateDocument("xhtml/valid/issue777-empty-lang.xhtml", "application/xhtml+xml",
EPUBVersion.VERSION_3);
}

}
11 changes: 11 additions & 0 deletions src/test/resources/30/single/xhtml/valid/issue777-empty-lang.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Allow empty lang attribute</title>
</head>
<body>
<p lang="" xml:lang="">This para has an empty lang attribute which was invalid prior to v4.1</p>
<p>Details: https://github.com/IDPF/epubcheck/issues/777</p>
</body>
</html>

0 comments on commit 0fdbd05

Please sign in to comment.