epubcheck icon indicating copy to clipboard operation
epubcheck copied to clipboard

media-type requirements on link

Open mattgarrish opened this issue 3 years ago • 1 comments
trafficstars

Epubcheck always emits an error on link rel="record" if the media-type attribute is missing, but we changed the requirement for 3.1 so that media-type is only required for resources in the container. See https://github.com/w3c/epub-specs/issues/702

The spec wording is now:

The media-type attribute is OPTIONAL when a linked resource is located outside the EPUB Container, as more than one media type could be served from the same URL [URL]. EPUB Creators MUST specify the attribute for all Local Resources.

If you specify any other rel value, epubcheck doesn't appear to require media-type on resources in the container, but should per this definition.

mattgarrish avatar Mar 08 '22 15:03 mattgarrish

FYI, I just made a test to check if a local resource would get flagged (in the testing branch), but there isn't an error in the beta-2 release.

mattgarrish avatar Sep 13 '22 16:09 mattgarrish