As discussed in this issue from the EPUB spec: w3c/epub-specs#2934, text fragments are both valid and useful as values for the src attribute in media overlays. Given that, epubcheck should validate these when they are encountered in place of a fragment identifier.
Currently (as discussed at #1248) epubcheck warns with MED_017 - "URL fragment should indicate an element ID" for these locators. This issue proposes that #:~:text= locators be validated explicitly rather than treated like other non-ID fragments. Specifically, the locator should be validated to ensure that it is well-formed and resolves to a single location in the target document.
References:
As discussed in this issue from the EPUB spec: w3c/epub-specs#2934, text fragments are both valid and useful as values for the src attribute in media overlays. Given that, epubcheck should validate these when they are encountered in place of a fragment identifier.
Currently (as discussed at #1248) epubcheck warns with MED_017 - "URL fragment should indicate an element ID" for these locators. This issue proposes that #:~:text= locators be validated explicitly rather than treated like other non-ID fragments. Specifically, the locator should be validated to ensure that it is well-formed and resolves to a single location in the target document.
References: