Skip to content

Commit

Permalink
Allow integrity on link[rel=preload|modulepreload]
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker authored and Umoxfo committed Jul 21, 2019
1 parent 7946ba7 commit c26d2f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nu/validator/checker/schematronequiv/Assertions.java
Original file line number Diff line number Diff line change
Expand Up @@ -2800,11 +2800,15 @@ else if ("bdo" == localName && atts.getIndex("", "dir") < 0) {
}
if (atts.getIndex("", "integrity") > -1
&& ((relList != null && !relList.contains("stylesheet")
&& !relList.contains("preload")
&& !relList.contains("modulepreload")
|| !hasRel))) {
err("A \u201Clink\u201D element with an"
+ " \u201Cintegrity\u201D attribute must have a"
+ " \u201Crel\u201D attribute that contains the"
+ " value \u201Cstylesheet\u201D.");
+ " value \u201Cstylesheet\u201D or the value"
+ " \u201Cpreload\u201D or the value"
+ " \u201Cmodulepreload\u201D.");
}
if (atts.getIndex("", "sizes") > -1
&& ((relList != null && !relList.contains("icon")
Expand Down

0 comments on commit c26d2f4

Please sign in to comment.