I have an IFRAME inside a web app I'm building which posts (postMessage
) to the parent document his DOM (document.documentElement.outerHTML
) after the page loads.
The problem is that I noticed that in some browsers there are some scripts injected to the IFRAME depending on the browser active add-ons (extensions). For example Ripple
will inject:
<script id="tinyhippos-injected">if (window.top.ripple) { window.top.ripple("bootstrap").inject(window, document); }</script>
I'm after the DOM without the injected scripts, how can I set the IFRAME to not accept injected scripts or injected HTML elements ?