From 099bcd9ed20b038959f22b00f5c4b3204938b984 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sat, 24 Dec 2022 10:11:31 -0800 Subject: [PATCH] vnu_filter: style/comments on obsolete filter One filter removes false-positives but has been fixed upstream; will keep the filter for a little while until Validator.nu updates to catch up to my local copy and validator.w3.org. --- linter-configs/vnu_filter.jq | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linter-configs/vnu_filter.jq b/linter-configs/vnu_filter.jq index 1262fbc..cde7cb1 100644 --- a/linter-configs/vnu_filter.jq +++ b/linter-configs/vnu_filter.jq @@ -1,8 +1,7 @@ # Filter false positives from the .messages entry of Nu Validator output .messages |= map( . | select( - .type == "error" and - ( + .type == "error" and ( ( # See https://github.com/w3c/css-validator/issues/361 .message == "CSS: Parse Error." and .extract == "){outline:none}}@media(prefers" @@ -10,6 +9,8 @@ ) or ( # See https://github.com/validator/validator/issues/1166 + # This false-positive has been fixed; will remove once validator.nu updates + # validator.w3.org/nu is up-to-date. .message == "Attribute “media” not allowed on element “meta” at this point." and (.extract | test(" name=\"theme-color\"")) )