Skip to content

Conversation

@rdeltour
Copy link
Member

@rdeltour rdeltour commented Dec 2, 2022

reimplement HTM-046 and HTM-047 in OPSHandler30

HTM-046 and HTM-048 check that HTML fixed-layout documents
have viewport metadata.

This change reimplements these checks in OPSHandler30 so that the
ctc package can be disabled.

report RSC-018 as RSC-007 instead

RSC-018 was introduced in the ctc package to check the images
specified in the MathML altimg attribute exist in the container.

EPUBCheck already has an error code for missing resources, namely RSC-018.

This change adds a check for the altimg in OPSHandler, and suppresses
RSC-018.

move HTM-053 check to OPSHandler

HTM-053 is an INFO-level message that reports links to local files
(absolute file URLs).

This check is moved to the core OPSHandler checks, so we can
safely disable the ctc package.

Note: these changes will only be effective when the ctc package is removed.

`HTM-053` is an INFO-level message that reports links to local files
(absolute `file` URLs).

This check is moved to the core OPSHandler checks, so we can
safely disable the `ctc` package.
RSC-018 was introduced in the `ctc` package to check the images
specified in the MathML `altimg` attribute exist in the container.

EPUBCheck already has an error code  for missing resources, namely `RSC-018`.

This  change adds a check for the `altimg` in OPSHandler, and suppresses
`RSC-018`.
`HTM-046` and `HTM-048` check that HTML fixed-layout documents
have viewport metadata.

This change reimplements these checks in `OPSHandler30` so that the
`ctc` package can be disabled.
`CSS-015` reports when a `link` element defining an alternative style sheet
does not have a `title` attribute.  This is required by HTML, see:

  https://html.spec.whatwg.org/multipage/links.html#the-link-is-an-alternative-stylesheet

This check is moved to the core checkers (specifically, in `OPSHandler30`), so
that the `ctc` package can be disabled.
@rdeltour rdeltour added this to the v5.0.0-beta milestone Dec 2, 2022
@rdeltour rdeltour requested a review from mattgarrish December 2, 2022 09:20
@rdeltour rdeltour self-assigned this Dec 2, 2022
@rdeltour rdeltour requested a review from mattgarrish December 2, 2022 14:08
Base automatically changed from feat/disabled-flawed-css-checks to release/v5.0.0 December 5, 2022 12:59
@rdeltour rdeltour merged commit 122a582 into release/v5.0.0 Dec 5, 2022
@rdeltour rdeltour deleted the feat/reimplement-ctc-checks-in-core branch December 5, 2022 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants