-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: check image sources in
picture
and srcset
Message changes: - new `MED-007` (`ERROR`) message is reported when an image source references a foreign resource (unless on `source` elements which `type` attribute specify non-core media type). - reworded `MED-003`; it now includes the resource path. Internal changes: - add a `SourceSet` class to represent an image source set, along with a parser folloing the "parsing a srcset attribute" algorithm from HTML. See https://html.spec.whatwg.org/#parsing-a-srcset-attribute - add to new reference types to the `XRefChecker` class, `PICTURE_SOURCE` and `PICTURE_SOURCE_FOREIGN`, to identify image source references in `picture` elements. - add tests, for both the `srcset` parser and the new fallback rules. Fix #781
- Loading branch information
Showing
113 changed files
with
1,549 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.