mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
f798de7e63
- Stop using draft WAI-ARIA 1.3 that isn't supported yet - Make in-page links focusable across shortcodes/partials - Replace existing in-page heading anchor links with a more accessible option. - Make backlinks aria-labelledby instead of giving them an aria-label, so they can be translated.
19 lines
565 B
Text
19 lines
565 B
Text
# 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."
|
|
and .extract == "){outline:none}}@media(prefers"
|
|
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\""))
|
|
)
|
|
) | not
|
|
)
|
|
)
|