We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ad140e commit 7b1f95eCopy full SHA for 7b1f95e
lib/html-proofer/check/links.rb
@@ -129,10 +129,10 @@ def find_fragments(html, fragment_ids)
129
html.xpath(*xpaths)
130
end
131
132
- IGNORABE_REL = %(canonical alternate next prev previous icon manifest apple-touch-icon)
+ SRI_REL_TYPES = %(stylesheet)
133
134
def check_sri(line, content)
135
- return if IGNORABE_REL.include?(@link.rel)
+ return unless SRI_REL_TYPES.include?(@link.rel)
136
if !defined?(@link.integrity) && !defined?(@link.crossorigin)
137
add_issue("SRI and CORS not provided in: #{@link.src}", line: line, content: content)
138
elsif !defined?(@link.integrity)
0 commit comments