According to google, javascript will soon be able to go around the DOM for situations like this. An example was shown at codeconf recently.