mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
b4850ed89a
- Remove XHTML content-type meta header from HTML documents, reverting back to the meta charset - Give XHTML documents their own XHTML declaration - Remove now-redundant meta charset from XHTML - Since XHTML and HTML documents differ now, compress after running xhtmlize and make xhtmlize only act on uncompressed files. - Validate XHTML using vnu
18 lines
539 B
Text
18 lines
539 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 (.extract | test(" name=\"theme-color\""))
|
|
)
|
|
) | not
|
|
)
|
|
)
|