Skip to content

Commit

Permalink
Merge pull request #443 from ilyalyo/fix/sri-cors-ignore-a-tags
Browse files Browse the repository at this point in the history
check only 'link' tag links
  • Loading branch information
gjtorikian authored Jul 17, 2017
2 parents 440d99f + af11b5c commit 97f8db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/html-proofer/check/links.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def run
next if @link.non_http_remote?

if !@link.internal? && @link.remote?
check_sri(line, content) if @link.check_sri?
check_sri(line, content) if @link.check_sri? && node.name == 'link'
# we need to skip these for now; although the domain main be valid,
# curl/Typheous inaccurately return 404s for some links. cc https://git.io/vyCFx
next if @link.try(:rel) == 'dns-prefetch'
Expand Down

0 comments on commit 97f8db2

Please sign in to comment.