5 ms·
> they also have to make sure malformed HTML can't break the rest of the page <iframe src="/actual/email"></iframe>
by ceejayoz 11y ago
> they also have to make sure malformed HTML can't break the rest of the page
<iframe src="/actual/email"></iframe>
- azinman2 11y agoChanges what you can then do with the email. If you want to hide quoted or let users select specific text for forwards, you're SOL.
- ceejayoz 11y agoAs long as they're on the same domain, you should be able to reach into the child iframe. Used to be a common technique for handling file upload progress before AJAX support for uploading became commonplace. The child can reach up to the parent via JS, too, but you'd want to sanitize any JS in an email anyways.
- livingparadox 11y agoAnyone who doesn't do this is asking for trouble
- mschuster91 11y agoPlease, add a sandbox attribute on your iframes. I have outlined the reason for this below.