Skip to content

Commit

Permalink
Fix missing createElement hook call
Browse files Browse the repository at this point in the history
  • Loading branch information
santala committed Feb 23, 2024
1 parent dc574fc commit 0c51bbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-forks-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remote-dom/polyfill": patch
---

Fix missing createElement hook call
3 changes: 3 additions & 0 deletions packages/polyfill/source/Document.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {hooks} from './hooks.ts';
import {NS, NAME, NamespaceURI, NodeType, OWNER_DOCUMENT} from './constants.ts';
import type {Window} from './Window.ts';
import type {Node} from './Node.ts';
Expand Down Expand Up @@ -98,6 +99,8 @@ export function createElement<T extends Element>(
Object.defineProperty(element, NS, {value: namespace});
}

hooks.createElement?.(element as any, namespace);

return element;
}

Expand Down

0 comments on commit 0c51bbc

Please sign in to comment.