Permalink
Browse files

feat(dom): add createTemplateElement

  • Loading branch information...
EisenbergEffect committed Aug 21, 2017
1 parent d2f747d commit 8158b02285d58bb001eb3dba4aea3c737b4a37a8
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/nodejs-dom.ts
View
@@ -38,6 +38,9 @@ export class NodeJsDom implements IDom {
createDocumentFragment(): DocumentFragment {
return this.global.document.createDocumentFragment();
}
createTemplateElement(): HTMLTemplateElement {
return this.global.document.createElement('template');
}
createMutationObserver(callback: (changes: MutationRecord[], instance: MutationObserver) => void): MutationObserver {
return new ((<any>this.global.window).MutationObserver)(callback);
}

0 comments on commit 8158b02

Please sign in to comment.