Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ window.HTMLElement = (function HTMLElement(this: HTMLElement) {
return instance;
} as unknown) as typeof HTMLElement;
window.HTMLElement.prototype = NativeHTMLElement.prototype;
window.HTMLElement.prototype.constructor = window.HTMLElement;
Object.setPrototypeOf(window.HTMLElement, NativeHTMLElement);

// Helpers to return the scope for a node where its registry would be located
const isValidScope = (node: Node) =>
Expand Down