From 0fdbd0500560b3e63865dd97ca8aefbd68fedfe5 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Mon, 10 Jul 2017 11:25:19 +0200 Subject: [PATCH] Add test for schema changes for empty lang attribute refs #777 #778 --- .../java/com/adobe/epubcheck/ops/OPSCheckerTest.java | 7 +++++++ .../30/single/xhtml/valid/issue777-empty-lang.xhtml | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/test/resources/30/single/xhtml/valid/issue777-empty-lang.xhtml diff --git a/src/test/java/com/adobe/epubcheck/ops/OPSCheckerTest.java b/src/test/java/com/adobe/epubcheck/ops/OPSCheckerTest.java index b9addd56e..42d58830a 100644 --- a/src/test/java/com/adobe/epubcheck/ops/OPSCheckerTest.java +++ b/src/test/java/com/adobe/epubcheck/ops/OPSCheckerTest.java @@ -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); + } + } diff --git a/src/test/resources/30/single/xhtml/valid/issue777-empty-lang.xhtml b/src/test/resources/30/single/xhtml/valid/issue777-empty-lang.xhtml new file mode 100644 index 000000000..6228b9a7e --- /dev/null +++ b/src/test/resources/30/single/xhtml/valid/issue777-empty-lang.xhtml @@ -0,0 +1,11 @@ + + + + + Allow empty lang attribute + + +

This para has an empty lang attribute which was invalid prior to v4.1

+

Details: https://github.com/IDPF/epubcheck/issues/777

+ + \ No newline at end of file