I see. However, from my little testing the above mentioned method does work without any changes. My question stemmed from possible edge-cases where it could break and that I was not thinking about.
Yes, that would be the other route.
Can you provide an example? I fail to see how they differ if the end result is the same iframe.