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

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

[elpa] master 7635384 17/23: Align iframe[sandbox] checking with spec


From: Stefan Monnier
Subject: [elpa] master 7635384 17/23: Align iframe[sandbox] checking with spec
Date: Thu, 14 Jan 2016 19:22:38 +0000

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

    Align iframe[sandbox] checking with spec
    
    Fixes https://github.com/validator/validator/issues/138
---
 common.rnc |    4 ++
 embed.rnc  |  149 +----------------------------------------------------------
 2 files changed, 7 insertions(+), 146 deletions(-)

diff --git a/common.rnc b/common.rnc
index 97c09de..3352fd8 100644
--- a/common.rnc
+++ b/common.rnc
@@ -394,6 +394,10 @@ common.attrs.other =
        common.data.integrity =
                w:integrity-metadata
 
+## List of sandbox keywords
+       common.data.sandbox-allow-list =
+               w:string "" | w:sandbox-allow-list
+
 ## Microdata Properties
   common.data.microdata-properties =
     list { w:microdata-property+ }
diff --git a/embed.rnc b/embed.rnc
index 1b20ba8..27b3ab6 100644
--- a/embed.rnc
+++ b/embed.rnc
@@ -465,152 +465,9 @@ namespace local = ""
                                w:string "seamless" | w:string ""
                        } & v5only
                iframe.attrs.sandbox =
-                       attribute sandbox
-                               {       list 
-                                       {       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       }
-                               |       list 
-                                       {       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       }
-                               |       list 
-                                       {       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-scripts" )?
-                                       }
-                               |       list 
-                                       {       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       }
-                               |       list 
-                                       {       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-forms" )?
-                                       }
-                               |       list 
-                                       {       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-forms" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-scripts" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-forms" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-scripts" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-forms" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-scripts" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       }
-                               |       list 
-                                       {       ( w:string "allow-scripts" )?
-                                       ,       ( w:string "allow-forms" )?
-                                       ,       ( w:string "allow-same-origin" 
)?
-                                       ,       ( w:string 
"allow-top-navigation" )?
-                                       }
-                               } & v5only
+                       attribute sandbox {
+                               common.data.sandbox-allow-list
+                       } & v5only
                iframe.attrs.allowfullscreen =
                        attribute allowfullscreen {
                                w:string "allowfullscreen" | w:string ""



reply via email to

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