Support IE 11
niutech opened this issue · comments
niu tech commented
In order to support older browser such as IE 11, you could rewrite the onclick handler to:
setTimeout(function(){(document.querySelector(contentWindow.location.hash||null)||{}).outerHTML=contentDocument.body.innerHTML})
Lean Rada commented
Just want to point out outerHTML
re: security.
outerHTML
would let the child page execute scripts in the parent domain, which is something to keep in mind if links can be user-generated.
I've removed outerHTML
references in my examples because of this.
Malix commented
Even jQuery v4 and HTMX v2 dropped IE 11 support
I think it's preferable to also not refactor to support it