Skip to content

Commit

Permalink
Update WCAG rules 7.1-1 and 7.1-2
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Dec 30, 2023
1 parent e9d308d commit cfa04a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions PDF_UA/WCAG/PDF_UA/1/verapdf-profile-7-1-t01.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<rule object="SEMarkedContent" tags="major,machine,artifact">
<id specification="ISO_14289_1" clause="7.1" testNumber="1"/>
<description>Content marked as Artifact should not present inside tagged content</description>
<test>tag != 'Artifact' || (parentStructureTag == null || isArtifact == true)</test>
<test>tag != 'Artifact' || (isTaggedContent == false || isArtifact == true)</test>
<error>
<message>Content marked as Artifact is present inside tagged content (tag %1)</message>
<message>Content marked as Artifact is present inside tagged content (parent struct element %1)</message>
<arguments>
<argument>parentStructureTag</argument>
<argument>parentStructureElementObjectKey</argument>
</arguments>
</error>
<references/>
Expand Down
6 changes: 3 additions & 3 deletions PDF_UA/WCAG/PDF_UA/1/verapdf-profile-7-1-t02.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<rule object="SEMarkedContent" tags="major,machine,artifact">
<id specification="ISO_14289_1" clause="7.1" testNumber="2"/>
<description>Tagged content should not present inside content marked as Artifact</description>
<test>(parentStructureTag == null || isArtifact == true) || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length == 0</test>
<test>(isTaggedContent == false || isArtifact == true) || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length == 0</test>
<error>
<message>Tagged content (tag %1) is present inside content marked as Artifact</message>
<message>Tagged content (parent struct element %1) is present inside content marked as Artifact</message>
<arguments>
<argument>parentStructureTag</argument>
<argument>parentStructureElementObjectKey</argument>
</arguments>
</error>
<references/>
Expand Down

0 comments on commit cfa04a6

Please sign in to comment.