mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
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.
This commit is contained in:
parent
5cbe4ef6c2
commit
099bcd9ed2
1 changed files with 3 additions and 2 deletions
|
@ -1,8 +1,7 @@
|
||||||
# Filter false positives from the .messages entry of Nu Validator output
|
# Filter false positives from the .messages entry of Nu Validator output
|
||||||
.messages |= map(
|
.messages |= map(
|
||||||
. | select(
|
. | select(
|
||||||
.type == "error" and
|
.type == "error" and (
|
||||||
(
|
|
||||||
( # See https://github.com/w3c/css-validator/issues/361
|
( # See https://github.com/w3c/css-validator/issues/361
|
||||||
.message == "CSS: Parse Error."
|
.message == "CSS: Parse Error."
|
||||||
and .extract == "){outline:none}}@media(prefers"
|
and .extract == "){outline:none}}@media(prefers"
|
||||||
|
@ -10,6 +9,8 @@
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
( # See https://github.com/validator/validator/issues/1166
|
( # 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."
|
.message == "Attribute “media” not allowed on element “meta” at this point."
|
||||||
and (.extract | test(" name=\"theme-color\""))
|
and (.extract | test(" name=\"theme-color\""))
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue