Skip to content

Commit

Permalink
feat: report aria-describedat as an ERROR
Browse files Browse the repository at this point in the history
Fixes #896
  • Loading branch information
rdeltour committed Jan 12, 2019
1 parent 47d4926 commit b4a9e7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@
<param name="ancestor" value="h:a[@href]"/>
</pattern>

<pattern id="deprecated-aria-describedat">
<rule context="h:*[@aria-describedat]">
<report test="true()">WARNING: the 'aria-describedat' attribute is deprecated.</report>
</rule>
</pattern>

<pattern id="descendant-a-interactive" is-a="no-interactive-content-descendants">
<param name="ancestor" value="h:a"/>
</pattern>
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/adobe/epubcheck/ops/OPSCheckerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ public void testValidateXHTML301CustomAttributes()
@Test
public void testValidateXHTML301AriaDescribedAt()
{
expectedWarnings.add(MessageId.RSC_017);
expectedErrors.add(MessageId.RSC_005);
testValidateDocument("xhtml/invalid/aria-describedAt.xhtml", "application/xhtml+xml",
EPUBVersion.VERSION_3);
}
Expand Down

0 comments on commit b4a9e7c

Please sign in to comment.