Cross browser implementation for document.importNode. Uses document.importNode in all browsers but IE, where the node is cloned by creating a new node and copying all attributes and children into it using importNode, recursively.

  • Parameters

    • doc: Document

      Document to import the node into.

    • node: Element

      Node to be imported.

    • allChildren: boolean

      If all children should be imported.

    Returns Element