there's a way that a user suggested loading an
<iframe> element into the page which also generates a new
window element and
document and then through
.contentDocument solves the problem, but it's still not secure because it uses the
document objects loaded in the parent element.
Another way I've apparently found it is using the
Provisory solution found: