]> code.delx.au - gnu-emacs-elpa/commitdiff
Allow the "nonce" attribute
authorMichael[tm] Smith <mike@w3.org>
Sun, 27 Dec 2015 13:06:52 +0000 (22:06 +0900)
committerMichael[tm] Smith <mike@w3.org>
Sun, 27 Dec 2015 13:06:52 +0000 (22:06 +0900)
Fixes https://github.com/validator/validator/issues/159

core-scripting.rnc
meta.rnc

index 534e4caa36b738711c2ba12ae3005f1db8c35b9c..33e8ff705f9ba1403a101cc29517f73d793dca4f 100644 (file)
@@ -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 =
index ad5e2f1030aa5a0b65ca48d2dbe552e945393ae1..e97e0dee3a0a3c59722f7ac125801b534ce002a0 100644 (file)
--- 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 )