1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Sandbox HTML iframes

Otherwise Firefox allows code in html tiddlers to access the main
window:

https://groups.google.com/d/topic/tiddlywiki/NwOI-QER2ig/discussion
This commit is contained in:
Jermolene 2015-01-28 13:50:39 +00:00
parent 040ed56de5
commit 050b643948

View File

@ -23,7 +23,8 @@ var HtmlParser = function(type,text,options) {
type: "element",
tag: "iframe",
attributes: {
src: {type: "string", value: src}
src: {type: "string", value: src},
sandbox: {type: "string", value: "sandbox"}
}
}];
};