Skip to content

Commit

Permalink
As spec for affected elements
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent authored Sep 5, 2019
1 parent 7b1f95e commit 277e1c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/html-proofer/check/links.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def find_fragments(html, fragment_ids)
html.xpath(*xpaths)
end

# Whitelist for affected elements from Subresource Integrity specification
# https://w3c.github.io/webappsec-subresource-integrity/#link-element-for-stylesheets
SRI_REL_TYPES = %(stylesheet)

def check_sri(line, content)
Expand Down

1 comment on commit 277e1c9

@Floppy
Copy link
Contributor

@Floppy Floppy commented on 277e1c9 Sep 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one @fulldecent

Please sign in to comment.