Node append(Node node) { insertBefore(node, null); // DocumentFragment is handled differently, according to Mozilla if (node is DocumentFragment) { return DocumentFragment(); } return node; }