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 authored and github-actions[bot] committed Dec 30, 2023
1 parent cfa04a6 commit 0c9e260
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions PDF_UA/WCAG-2-2-Complete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@
<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/>
</rule>
<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
12 changes: 6 additions & 6 deletions PDF_UA/WCAG-2-2-Machine.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@
<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/>
</rule>
<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 0c9e260

Please sign in to comment.