diff --git a/PDF_UA/1/7.1 General/verapdf-profile-7-1-t02.xml b/PDF_UA/1/7.1 General/verapdf-profile-7-1-t02.xml index 199c8498..6558c986 100644 --- a/PDF_UA/1/7.1 General/verapdf-profile-7-1-t02.xml +++ b/PDF_UA/1/7.1 General/verapdf-profile-7-1-t02.xml @@ -9,7 +9,7 @@ Tagged content should not present inside content marked as Artifact - isTaggedContent == false || parentsTags.split('&').filter(elem => elem == 'Artifact').length == 0 + isTaggedContent == false || parentsTags.contains('Artifact') == false Tagged content (parent struct element %1) is present inside content marked as Artifact diff --git a/PDF_UA/1/7.1 General/verapdf-profile-7-1-t03.xml b/PDF_UA/1/7.1 General/verapdf-profile-7-1-t03.xml index a9717540..2a6aca24 100644 --- a/PDF_UA/1/7.1 General/verapdf-profile-7-1-t03.xml +++ b/PDF_UA/1/7.1 General/verapdf-profile-7-1-t03.xml @@ -9,7 +9,7 @@ Content shall be marked as Artifact or tagged as real content - isTaggedContent == true || parentsTags.split('&').filter(elem => elem == 'Artifact').length > 0 + isTaggedContent == true || parentsTags.contains('Artifact') == true Content is neither marked as Artifact nor tagged as real content diff --git a/PDF_UA/2/8.2 Logical structure/8.2.2 Real content/verapdf-profile-8-2-2-t01.xml b/PDF_UA/2/8.2 Logical structure/8.2.2 Real content/verapdf-profile-8-2-2-t01.xml index a2cf1f3c..8e368307 100644 --- a/PDF_UA/2/8.2 Logical structure/8.2.2 Real content/verapdf-profile-8-2-2-t01.xml +++ b/PDF_UA/2/8.2 Logical structure/8.2.2 Real content/verapdf-profile-8-2-2-t01.xml @@ -9,7 +9,7 @@ Content that is not considered real shall be an artifact - isTaggedContent == true || parentsTags.split('&').filter(elem => elem == 'Artifact').length > 0 + isTaggedContent == true || parentsTags.contains('Artifact') == true Content is neither marked as Artifact nor tagged as real content diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t29.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t29.xml index 1be70086..3e3f11b5 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t29.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t29.xml @@ -9,7 +9,7 @@ TOCI shall contain one or more text lines - errorCodes.split(',').filter(elem => elem == 1000).length == 0 + errorCodes.contains('1000') == false TOCI doesn't have a text diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t31.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t31.xml index d131a20e..708f2be0 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t31.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t31.xml @@ -9,11 +9,11 @@ TOCI page label shall match the destination page - errorCodes.split(',').filter(elem => elem == 1002).length == 0 + errorCodes.contains('1002') == false TOCI has a wrong page label. Possible page number(s), which page label could be used: %1 - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1002)] + errorArguments.get(errorCodes.indexOf('1002')).get(0) structureID diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t32.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t32.xml index 17396b51..5b3e5bf7 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t32.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t32.xml @@ -9,7 +9,7 @@ TOCI shall have a right alignment that matches a right alignment of other TOCIs - errorCodes.split(',').filter(elem => elem == 1003).length == 0 + errorCodes.contains('1003') == false TOCI has a bad right alignment diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t34.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t34.xml index 2b17eded..219b8a26 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t34.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t34.xml @@ -9,7 +9,7 @@ This list and neighbor list(s) should be tagged as one list - errorCodes.split(',').filter(elem => elem == 1200).length == 0 + errorCodes.contains('1200') == false This list and neighbor list(s) should be tagged as one list diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t35.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t35.xml index 4961d58a..e1992bac 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t35.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t35.xml @@ -9,7 +9,7 @@ This TOC and neighbor TOC(s) should be tagged as one TOC - errorCodes.split(',').filter(elem => elem == 1006).length == 0 + errorCodes.contains('1006') == false This TOC and neighbor TOC(s) should be tagged as one TOC diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t36.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t36.xml index 4a213725..47c7da2c 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t36.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t36.xml @@ -9,12 +9,12 @@ The number of rows of this table does not match the number of rows of the visual representation of this table - errorCodes.split(',').filter(elem => elem == 1104).length == 0 + errorCodes.contains('1104') == false The number of rows %1 of this table does not match the number of rows %2 of the visual representation of this table - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1104)].split(';')[0] - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1104)].split(';')[1] + errorArguments.get(errorCodes.indexOf('1104')).get(0) + errorArguments.get(errorCodes.indexOf('1104')).get(1) structureID diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t37.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t37.xml index 67a09a51..f2057858 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t37.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t37.xml @@ -9,12 +9,12 @@ The number of columns of this table does not match the number of columns of the visual representation of this table - errorCodes.split(',').filter(elem => elem == 1105).length == 0 + errorCodes.contains('1105') == false The number of columns %1 of this table does not match the number of columns %2 of the visual representation of this table - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1105)].split(';')[0] - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1105)].split(';')[1] + errorArguments.get(errorCodes.indexOf('1105')).get(0) + errorArguments.get(errorCodes.indexOf('1105')).get(1) structureID diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t38.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t38.xml index 93d4ca36..26a1b7c3 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t38.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t38.xml @@ -9,12 +9,12 @@ The row span of this table cell does not match the row span of the visual representation of this table cell - errorCodes.split(',').filter(elem => elem == 1106).length == 0 + errorCodes.contains('1106') == false The row span %1 of this table cell does not match the row span %2 of the visual representation of this table cell - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1106)].split(';')[0] - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1106)].split(';')[1] + errorArguments.get(errorCodes.indexOf('1106')).get(0) + errorArguments.get(errorCodes.indexOf('1106')).get(1) structureID diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t39.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t39.xml index da18ae52..7007bc04 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t39.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t39.xml @@ -9,12 +9,12 @@ The column span of this table cell does not match the column span of the visual representation of this table cell - errorCodes.split(',').filter(elem => elem == 1107).length == 0 + errorCodes.contains('1107') == false The column span %1 of this table cell does not match the column span %2 of the visual representation of this table cell - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1107)].split(';')[0] - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1107)].split(';')[1] + errorArguments.get(errorCodes.indexOf('1107')).get(0) + errorArguments.get(errorCodes.indexOf('1107')).get(1) structureID diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t41.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t41.xml index 2e29c0de..359d67bd 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t41.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t41.xml @@ -9,7 +9,7 @@ This cell is below than some cells in the next row - errorCodes.split(',').filter(elem => elem == 1100).length == 0 + errorCodes.contains('1100') == false This cell is below than some cells in the next row diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t42.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t42.xml index 673c6df7..52ac2aec 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t42.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t42.xml @@ -9,7 +9,7 @@ This cell is above than some cells in the previous row - errorCodes.split(',').filter(elem => elem == 1101).length == 0 + errorCodes.contains('1101') == false This cell is above than some cells in the previous row diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t43.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t43.xml index 17e256a6..3e6958b0 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t43.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t43.xml @@ -9,7 +9,7 @@ This cell is to the right of some cells in the next column - errorCodes.split(',').filter(elem => elem == 1102).length == 0 + errorCodes.contains('1102') == false This cell is to the right of some cells in the next column diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t44.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t44.xml index b3a7585c..572b8339 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t44.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t44.xml @@ -9,7 +9,7 @@ This cell is to the left of some cells in the previous column - errorCodes.split(',').filter(elem => elem == 1103).length == 0 + errorCodes.contains('1103') == false This cell is to the left of some cells in the previous column diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t46.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t46.xml index a695b257..af067269 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t46.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t46.xml @@ -9,7 +9,7 @@ TOCI text should be presented in the document - errorCodes.split(',').filter(elem => elem == 1007).length == 0 + errorCodes.contains('1007') == false TOCI text is not found in the document diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t47.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t47.xml index 523ff158..4da640aa 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t47.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t47.xml @@ -9,15 +9,13 @@ TOCI text should be presented on a destination page - errorCodes.split(',').filter(elem => elem == 1008).length == 0 + errorCodes.contains('1008') == false TOCI text is not found on a destination page %wrongDestinationPage%. Possible destination page number(s): %possiblePageNumbers% - errorArguments.split(';;')[errorCodes.split(',') - .findIndex(elem => elem == 1008)].split(';')[0] - errorArguments.split(';;')[errorCodes.split(',') - .findIndex(elem => elem == 1008)].split(';')[1] + errorArguments.get(errorCodes.indexOf('1008')).get(0) + errorArguments.get(errorCodes.indexOf('1008')).get(1) structureID diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t48.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t48.xml index a5f9466a..254c4df0 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t48.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t48.xml @@ -9,11 +9,11 @@ TOCI should have a destination - errorCodes.split(',').filter(elem => elem == 1009).length == 0 + errorCodes.contains('1009') == false TOCI doesn't have a destination. Possible destination page number(s): %1 - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1009)] + errorArguments.get(errorCodes.indexOf(1009)).get(0) structureID diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t49.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t49.xml index 81898dfc..0196e753 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t49.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t49.xml @@ -9,11 +9,11 @@ TOCI should have a correct page label - errorCodes.split(',').filter(elem => elem == 1010).length == 0 + errorCodes.contains('1010') == false TOCI has a wrong page label. Possible page number(s), which page label could be used: %1 - errorArguments.split(';;')[errorCodes.split(',').findIndex(elem => elem == 1010)] + errorArguments.get(errorCodes.indexOf('1010')).get(0) structureID diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t50.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t50.xml index 71725651..5835289c 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t50.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t50.xml @@ -9,14 +9,12 @@ TOCI should have a correct numbering - errorCodes.split(',').filter(elem => elem == 1011).length == 0 + errorCodes.contains('1011') == false TOCI has a wrong numbering. The heading number cannot start with %wrongNumbering% - errorArguments.split(';;')[errorCodes.split(',') - .findIndex(elem => elem == 1011)].split(';')[0] - errorArguments.split(';;')[errorCodes.split(',') - .findIndex(elem => elem == 1011)].split(';')[1] + errorArguments.get(errorCodes.indexOf('1011')).get(0) + errorArguments.get(errorCodes.indexOf('1011')).get(1) structureID diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t51.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t51.xml index 5f30f7e6..c3b8f203 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t51.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t51.xml @@ -9,7 +9,7 @@ List should contain list items - errorCodes.split(',').filter(elem => elem == 1201).length == 0 + errorCodes.contains('1201') == false List contains only one child - list diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t52.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t52.xml index ae7cf10e..880fafcb 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t52.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t52.xml @@ -9,7 +9,7 @@ The structure type and attributes of a list item shall be semantically appropriate - errorCodes.split(',').filter(elem => elem == 1202).length == 0 + errorCodes.contains('1202') == false This list item should be tagged as several different list items diff --git a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t55.xml b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t55.xml index f877644f..7b3bbd65 100644 --- a/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t55.xml +++ b/PDF_UA/WCAG/2.2/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t55.xml @@ -9,7 +9,7 @@ The structure type and attributes of a heading shall be semantically appropriate - errorCodes.split(',').filter(elem => elem == 1300).length == 0 + errorCodes.contains('1300') == false This node is the single child with content. One of its ancestor nodes should be tagged as heading instead of this one diff --git a/PDF_UA/WCAG/PDF_UA/1/verapdf-profile-7-1-t02.xml b/PDF_UA/WCAG/PDF_UA/1/verapdf-profile-7-1-t02.xml index 8e630ded..4f24c180 100644 --- a/PDF_UA/WCAG/PDF_UA/1/verapdf-profile-7-1-t02.xml +++ b/PDF_UA/WCAG/PDF_UA/1/verapdf-profile-7-1-t02.xml @@ -9,7 +9,7 @@ Tagged content should not present inside content marked as Artifact - (isTaggedContent == false || isArtifact == true) || parentsTags.split('&').filter(elem => elem == 'Artifact').length == 0 + (isTaggedContent == false || isArtifact == true) || parentsTags.contains('Artifact') == false Tagged content (parent struct element %1) is present inside content marked as Artifact diff --git a/PDF_UA/WTPDF/1.0/Accessibility/6.1.3 Conformance level for accessibility/verapdf-profile-6-1-3-t01.xml b/PDF_UA/WTPDF/1.0/Accessibility/6.1.3 Conformance level for accessibility/verapdf-profile-6-1-3-t01.xml index c8b6f646..5373fb5f 100644 --- a/PDF_UA/WTPDF/1.0/Accessibility/6.1.3 Conformance level for accessibility/verapdf-profile-6-1-3-t01.xml +++ b/PDF_UA/WTPDF/1.0/Accessibility/6.1.3 Conformance level for accessibility/verapdf-profile-6-1-3-t01.xml @@ -11,7 +11,7 @@ File conforming to the WTPDF 1.0 conformance level for accessibility shall include a PDF Declaration with the URI identifier "http://pdfa.org/declarations/wtpdf#accessibility1.0" as its pdfd:conformsTo entry - declarations.split(',').filter(declarations => declarations == 'http://pdfa.org/declarations/wtpdf#accessibility1.0').length == 1 + declarations.contains('http://pdfa.org/declarations/wtpdf#accessibility1.0') == true File conforming to the WTPDF 1.0 conformance level for accessibility doesn't include a PDF Declaration with the URI identifier "http://pdfa.org/declarations/wtpdf#accessibility1.0" as its pdfd:conformsTo entry diff --git a/PDF_UA/WTPDF/1.0/Reuse/6.1.2 Conformance level for reuse/verapdf-profile-6-1-2-t01.xml b/PDF_UA/WTPDF/1.0/Reuse/6.1.2 Conformance level for reuse/verapdf-profile-6-1-2-t01.xml index bb454beb..148f3388 100644 --- a/PDF_UA/WTPDF/1.0/Reuse/6.1.2 Conformance level for reuse/verapdf-profile-6-1-2-t01.xml +++ b/PDF_UA/WTPDF/1.0/Reuse/6.1.2 Conformance level for reuse/verapdf-profile-6-1-2-t01.xml @@ -11,7 +11,7 @@ File conforming to the WTPDF 1.0 conformance level for reuse shall include a PDF Declaration with the URI identifier "http://pdfa.org/declarations/wtpdf#reuse1.0" as its pdfd:conformsTo entry - declarations.split(',').filter(declarations => declarations == 'http://pdfa.org/declarations/wtpdf#reuse1.0').length == 1 + declarations.contains('http://pdfa.org/declarations/wtpdf#reuse1.0') == true File conforming to the WTPDF 1.0 conformance level for reuse doesn't include a PDF Declaration with the URI identifier "http://pdfa.org/declarations/wtpdf#reuse1.0" as its pdfd:conformsTo entry