From: Michael[tm] Smith Date: Sun, 27 Dec 2015 13:06:52 +0000 (+0900) Subject: Allow the "nonce" attribute X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/ae3a23b36026d161ba2b5d834729a0815ccd198d Allow the "nonce" attribute Fixes https://github.com/validator/validator/issues/159 --- diff --git a/core-scripting.rnc b/core-scripting.rnc index 534e4caa3..33e8ff705 100644 --- a/core-scripting.rnc +++ b/core-scripting.rnc @@ -16,6 +16,7 @@ datatypes w = "http://whattf.org/datatype-draft" & script.attrs.type? & script.attrs.language? # restricted in Schematron & script.attrs.integrity? + & script.attrs.nonce? & embedded.content.attrs.crossorigin? & ( common.attrs.aria.role.presentation | common.attrs.aria.role.menuitem @@ -32,6 +33,7 @@ datatypes w = "http://whattf.org/datatype-draft" & script.attrs.charset? & script.attrs.language? # restricted in Schematron & script.attrs.integrity? + & script.attrs.nonce? & embedded.content.attrs.crossorigin? & ( common.attrs.aria.role.presentation | common.attrs.aria.role.menuitem @@ -65,6 +67,10 @@ datatypes w = "http://whattf.org/datatype-draft" attribute integrity { common.data.integrity } + script.attrs.nonce = + attribute nonce{ + string + } script.inner.embedded = ( common.inner.anything ) script.inner.imported = diff --git a/meta.rnc b/meta.rnc index ad5e2f103..e97e0dee3 100644 --- a/meta.rnc +++ b/meta.rnc @@ -199,6 +199,7 @@ datatypes w = "http://whattf.org/datatype-draft" ( common.attrs & style.attrs.type? & style.attrs.media? + & style.attrs.nonce? # style.attrs.title included in common.attrs & ( common.attrs.aria.role.presentation | common.attrs.aria.role.menuitem @@ -212,6 +213,10 @@ datatypes w = "http://whattf.org/datatype-draft" attribute media { common.data.mediaquery } + style.attrs.nonce = + attribute nonce{ + string + } style.inner = ( common.inner.anything )