Skip to content

Commit

Permalink
Add the "integrity" attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed Dec 25, 2015
1 parent 5f5b207 commit f442a96
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions schema/html5/common.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ common.attrs.other =
common.data.source.size.list =
w:source-size-list

## Subresource Integrity
common.data.integrity =
string

## Microdata Properties
common.data.microdata-properties =
list { w:microdata-property+ }
Expand Down
6 changes: 6 additions & 0 deletions schema/html5/core-scripting.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ datatypes w = "http://whattf.org/datatype-draft"
( common.attrs
& script.attrs.type?
& script.attrs.language? # restricted in Schematron
& script.attrs.integrity?
& embedded.content.attrs.crossorigin?
& ( common.attrs.aria.role.presentation
| common.attrs.aria.role.menuitem
Expand All @@ -30,6 +31,7 @@ datatypes w = "http://whattf.org/datatype-draft"
& script.attrs.type?
& script.attrs.charset?
& script.attrs.language? # restricted in Schematron
& script.attrs.integrity?
& embedded.content.attrs.crossorigin?
& ( common.attrs.aria.role.presentation
| common.attrs.aria.role.menuitem
Expand Down Expand Up @@ -59,6 +61,10 @@ datatypes w = "http://whattf.org/datatype-draft"
attribute language {
string
}
script.attrs.integrity =
attribute integrity {
common.data.integrity
}
script.inner.embedded =
( common.inner.anything )
script.inner.imported =
Expand Down
5 changes: 5 additions & 0 deletions schema/html5/meta.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ datatypes w = "http://whattf.org/datatype-draft"
& common.attrs.other
& link.attrs.href
& link.attrs.rel
& link.attrs.integrity?
& shared-hyperlink.attrs.hreflang?
& shared-hyperlink.attrs.media?
& shared-hyperlink.attrs.type?
Expand All @@ -178,6 +179,10 @@ datatypes w = "http://whattf.org/datatype-draft"
attribute rel {
w:link-rel
}
link.attrs.integrity =
attribute integrity {
common.data.integrity
}
link.attrs.sizes =
attribute sizes {
w:string "any" | common.data.sizes
Expand Down

0 comments on commit f442a96

Please sign in to comment.