2022-05-11 17:01:22 +00:00
|
|
|
# Filter false positives from the .messages entry of Nu Validator output
|
|
|
|
.messages |= map(
|
|
|
|
. | select(
|
|
|
|
.type == "error" and
|
|
|
|
(
|
|
|
|
( # See https://github.com/w3c/css-validator/issues/361
|
|
|
|
.message == "CSS: Parse Error."
|
2022-05-13 03:51:11 +00:00
|
|
|
and .extract == "){outline:none}}@media(prefers"
|
2022-05-11 17:01:22 +00:00
|
|
|
and .hiliteLength == 1
|
|
|
|
)
|
|
|
|
or
|
|
|
|
( # See https://github.com/validator/validator/issues/1166
|
|
|
|
.message == "Attribute “media” not allowed on element “meta” at this point."
|
|
|
|
and .firstColumn == 1
|
|
|
|
and (.extract | test(" name=\"theme-color\""))
|
|
|
|
)
|
2022-05-13 01:39:34 +00:00
|
|
|
or
|
|
|
|
( # See https://w3c.github.io/aria/#comment
|
2022-05-13 01:42:12 +00:00
|
|
|
.message == "Bad value “comment” for attribute “role” on element “p”."
|
2022-05-13 01:39:34 +00:00
|
|
|
and (.extract | test("u-comment"))
|
|
|
|
)
|
2022-05-11 17:01:22 +00:00
|
|
|
) | not
|
|
|
|
)
|
|
|
|
)
|