From a9bb774074592b9ada5a63361c04ba8201803167 Mon Sep 17 00:00:00 2001 From: Valerie Young Date: Thu, 22 Oct 2020 15:28:16 -0700 Subject: [PATCH] Infrastructure: Update vnujar filtering to restore ignoring no alt on role=img (pull #1468) * Update vnujar filtering to ignore no alt on role=img, again * Update vnu-jar * Explicitly write both version of vnu-jar errors for alt errors * Update .vnurc, remove old error * Update .vnurc, escape asterix Co-authored-by: Nick Schonning Co-authored-by: Matt King ` --- .vnurc | 4 +++- package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.vnurc b/.vnurc index 9574520e99..4afaa5da84 100644 --- a/.vnurc +++ b/.vnurc @@ -4,7 +4,9 @@ # Proposed, tracking in gh-429 Bad value “” for attribute “aria-activedescendant” on element “ul”:.* # Ignoring for Slider examples because it is forcing rule with role=img -Element “img” is missing required attribute “alt”. +An “img” element with no “alt” attribute must not have a “role” attribute. +An “img” element with no “alt” attribute must not have any “aria-\*” attributes other than “aria-hidden”. +An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. # Ignoring aria-posinset and aria-setsize on role row Attribute “aria-posinset” not allowed on element “tr” at this point. Attribute “aria-setsize” not allowed on element “tr” at this point. diff --git a/package-lock.json b/package-lock.json index 7b45bcd506..8e22cdfc99 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6254,9 +6254,9 @@ } }, "vnu-jar": { - "version": "20.3.16", - "resolved": "https://registry.npmjs.org/vnu-jar/-/vnu-jar-20.3.16.tgz", - "integrity": "sha512-CHlvP4lilQvgjSRDsiB7i0lN0gnkq6zv3sN/71FYVgOQ/nYLXFfUhGIVeGskm9W1C0+UralU1XQnbsjJr2ijaw==", + "version": "20.6.30", + "resolved": "https://registry.npmjs.org/vnu-jar/-/vnu-jar-20.6.30.tgz", + "integrity": "sha512-zlNNe7jW6cTIrxVlZK9AcZiNWjxzjqi7LpTafBCi4OY4bsh2uyGhxXT2l6hZ3ibpxP0ZC/pQsBpFQEACS0ePIg==", "dev": true }, "vscode-uri": { diff --git a/package.json b/package.json index aec57605d5..dae64fe7f7 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "stylelint-config-prettier": "^8.0.2", "stylelint-config-standard": "^20.0.0", "stylelint-prettier": "^1.1.2", - "vnu-jar": "^20.3.16" + "vnu-jar": "^20.6.30" }, "husky": { "hooks": {