6 ms·
Looks like you're setting the <iframe>'s contents with a data uri in the src attribute, you save some characters if you use the HTML5 srcdoc attribute: <x
by bburky 13y ago
Looks like you're setting the <iframe>'s contents with a data uri in the src attribute, you save some characters if you use the HTML5 srcdoc attribute:
<x id=e><script>for(i=4;i--;)e.innerHTML+=(i?'<textarea':'<iframe')+' id=t'+i+' style=width:49%;height:48% oninput=\'t0.srcdoc=t3[v="value"]+"<script>"+t1[v]+"<\/script><style>"+t2[v]\'>'</script>
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-srcdoc https://developer.mozilla.org/en-US/docs/Web/HTML/Element/if...
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-srcdoc http://www.whatwg.org/specs/web-apps/current-work/multipage/...
- xem 13y agoThanks for your help! You shoud join us on Github, and discuss this subject here: https://github.com/xem/miniCodeEditor/issues/6 https://github.com/xem/miniCodeEditor/issues/6