<div dir="ltr"><div><h1 style="margin: 0.67em 0px;" dir="ltr">Заказ в интернет магазине</h1></div>
<div style="display: inline; white-space: pre-wrap;"><div style="font: inherit; margin: 0px 0px 1em; width: 99%; white-space: pre-wrap; -ms-word-wrap: break-word; font-size-adjust: inherit; font-stretch: inherit;" dir="ltr">Ваша корзина</div>
<div style="color: rgb(196, 59, 29);">* Обязательно</div></div>.fake-pre {
font-family:monospace;
font-size:.9em;
color:#dd1144;
background-color:#f7f7f9;
border:1px solid #e1e1e8;
border-radius:3px;
padding: 0em .1em .2em .1em;
}<iframe sandbox seamless height="100%" style="width: 100%; border:0;" src="fallback.html" srcdoc="
Here you can insert <b>code</b> and it cannot be executed because it is inside an iframe that is sandboxed!<br>
You can <i>style the content</i> within the srcdoc attribute using HTML or even a <span class='myStyle'>local style</span> block but you must <b>escape all quotes (use `"`) or single quotes and double-escape all ampersands (use `&amp;` for a single ampersand</b>
<br>
See more about iframes and srcdoc:<br>
<a href="iframe">http://www.w3schools.com/tags/att_iframe_sandbox.asp</a>
<style>.myStyle {color:green; font-weight:bold;}</style>
"></iframe>On 15 Mar 2016, at 10:20, Mat <matia...@gmail.com> wrote:Maybe (I'm not sure) you can wrap it in an iframe using srcdoc
Just to point out once again, there’s no benefit of using srcdoc vs. using the src attribute with a base64 encoded document as TiddlyWiki does at the moment. Browser support is more consistent for the latter.
- thanks, but merely exchanging the srcdoc parameter for src in the above code, just doesn't render the content. How does one show TW-local content in a TW-local iframe?
<:-)--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e86e1c9c-4ae6-4785-bfc9-e5da26ac25ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
tags: $:/tags/Macro
\define iframed() <iframe sandbox seamless height="100%" style="width: 100%; border:0;" src="""$(uri)$"""></iframe>
\define getiframe(itype arg)
<$set name="uri" value=<<makedatauri """$arg$""" "text/$itype$">>>
<<iframed>>
</$set>
\end
\define sandbox(content itype:"html")
<$macrocall $name="getiframe" itype="$itype$" arg="""$content$"""/>
\end