ipeychev/alloy-ui — pull request #8 by danielreuther (2013-01-22 12:04:44+00:00)
Title: [TECH SUPPORT] AUI-808

Hey Iliyan,

I've sent this to Levente before but he's off sick this week.

This is a fix for a very tricky problem. Essentially, you can't clone iframes in IE (especially not with cloneNode) which means that when trying to print a page with an iframe on it, it'll print whatever is in the src attribute but not the current location.

I've tried various approaches but none yielded a usable result apart from this one. Especially considering that we cannot assume to have access to the iframe's content in the first place (because of the same-origin policy).

What I'm doing here, is moving the iframe node between the copied body and the "real" body when printing.

Can you take a look at it, please?

Thanks,
Daniel