Very annoying, But here is a solution.
When you’re creating your iframe, don’t create it as a DOM element, create a wrapper for it and change its innerHTML.
var a = document.createElement('div'); document.appendChild(a); a.innerHTML = '<iframe name="targetMe" id="targetMe"></iframe>'
Now your form can target that iFrame! Easy!