emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master ae3a23b 19/23: Allow the "nonce" attribute


From: Stefan Monnier
Subject: [elpa] master ae3a23b 19/23: Allow the "nonce" attribute
Date: Thu, 14 Jan 2016 19:22:40 +0000

branch: master
commit ae3a23b36026d161ba2b5d834729a0815ccd198d
Author: Michael[tm] Smith <address@hidden>
Commit: Michael[tm] Smith <address@hidden>

    Allow the "nonce" attribute
    
    Fixes https://github.com/validator/validator/issues/159
---
 core-scripting.rnc |    6 ++++++
 meta.rnc           |    5 +++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/core-scripting.rnc b/core-scripting.rnc
index 534e4ca..33e8ff7 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 ad5e2f1..e97e0de 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 )
                



reply via email to

[Prev in Thread] Current Thread [Next in Thread]