Multi-window situation crashed in IE10 due to not being able to call the appendChild method with argument being an element from a different window.

I am trying to enable multi-monitor support in my SPA with Knockout. It works everywhere but in IE10 (may be 9 and 11 too). The reason is the following chain of functions that disregard the current document. Basically `renderTemplate` is the last function that keeps track of the `templateDocument` object, but this document doesn't go anywhere deeper than that:
```
renderTemplateSource
    parseHtmlFragment
         jQueryHtmlParse
                jQuery.parseHTML
```
So at the end of the chain the `parseHTML` of jQuery is called without specifying its `context` parameter which is supposed to be a document against which the given text value should be parsed, so the `context` defaults to the current document instead.

Due to using the worng document at the parsing stage later on Knockout brakes at line 247: `domNode.appendChild(childNodes[i]);` inside the `setDomNodeChildren` function with the `HierarchyRequestError` exception.


UPDATE:
I fixed the case described above by passing the document element that corresponds to the nodes across the functions. Another place where the same problem was spottes is: `moveCleanedNodesToContainerElement`