[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 1c11a56 12/23: Add the "integrity" attribute
From: |
Stefan Monnier |
Subject: |
[elpa] master 1c11a56 12/23: Add the "integrity" attribute |
Date: |
Thu, 14 Jan 2016 19:22:36 +0000 |
branch: master
commit 1c11a56fc072cba7c1251b1e02811d93bb1a3d66
Author: Michael[tm] Smith <address@hidden>
Commit: Michael[tm] Smith <address@hidden>
Add the "integrity" attribute
Fixes https://github.com/validator/validator/issues/151
---
common.rnc | 4 ++++
core-scripting.rnc | 6 ++++++
meta.rnc | 5 +++++
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/common.rnc b/common.rnc
index e87d49b..b105ad7 100644
--- a/common.rnc
+++ b/common.rnc
@@ -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+ }
diff --git a/core-scripting.rnc b/core-scripting.rnc
index ff64969..0569d0e 100644
--- a/core-scripting.rnc
+++ b/core-scripting.rnc
@@ -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
@@ -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
@@ -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 =
diff --git a/meta.rnc b/meta.rnc
index 92aaf5e..bbb67b4 100644
--- a/meta.rnc
+++ b/meta.rnc
@@ -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?
@@ -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
- [elpa] master 2d5e35e 05/23: Report warning for inputmode (instead of error)., (continued)
- [elpa] master 2d5e35e 05/23: Report warning for inputmode (instead of error)., Stefan Monnier, 2016/01/14
- [elpa] master c531523 02/23: Added warning that assertions.sch isn't maintained, Stefan Monnier, 2016/01/14
- [elpa] master 242f515 07/23: Emit error for empty form-control `name` attr., Stefan Monnier, 2016/01/14
- [elpa] master e2f495e 06/23: Allow ruby <rb> & <rtc> elements., Stefan Monnier, 2016/01/14
- [elpa] master 8b4cba1 08/23: Corrected the content model for the ruby element., Stefan Monnier, 2016/01/14
- [elpa] master a9ca633 04/23: Make input[type]-specific error msgs more clear., Stefan Monnier, 2016/01/14
- [elpa] master 85521bf 13/23: Make "integrity" checking more helpful, Stefan Monnier, 2016/01/14
- [elpa] master 103dc56 09/23: (Re)corrected content model for the ruby element., Stefan Monnier, 2016/01/14
- [elpa] master 76e0657 10/23: Allow ol>li[role=menuitem] & ol>li[role=tab]., Stefan Monnier, 2016/01/14
- [elpa] master c3b8596 14/23: Sync up with latest ARIA-in-HTML spec changes, Stefan Monnier, 2016/01/14
- [elpa] master 1c11a56 12/23: Add the "integrity" attribute,
Stefan Monnier <=
- [elpa] master f1cac66 11/23: Refine some ARIA checking to sync w/ current spec, Stefan Monnier, 2016/01/14
- [elpa] master ae3a23b 19/23: Allow the "nonce" attribute, Stefan Monnier, 2016/01/14
- [elpa] master 44fe4a7 16/23: Allow "minlength", Stefan Monnier, 2016/01/14
- [elpa] master 67350aa 15/23: Allow ARIA role=switch, Stefan Monnier, 2016/01/14
- [elpa] master fec8cdf 20/23: Add CSP syntax checking for <meta> & HTTP header, Stefan Monnier, 2016/01/14
- [elpa] master 6e7c7c3 21/23: Make minlength checking behave as expected, Stefan Monnier, 2016/01/14
- [elpa] master 7635384 17/23: Align iframe[sandbox] checking with spec, Stefan Monnier, 2016/01/14
- [elpa] master 1f870ab 18/23: Align event-handler-attribute checking with spec, Stefan Monnier, 2016/01/14
- [elpa] master a426434 23/23: * html5-schema: Add locating-rules.xml and setup nxml to use it, Stefan Monnier, 2016/01/14
- [elpa] master dcd917c 01/23: Consolidated all RelaxNG files into `/schema` dir., Stefan Monnier, 2016/01/14