Skip to content

Commit f7066c7

Browse files
committed
fix(polyfill): ownerDocument
1 parent 2d690bf commit f7066c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/canvas-polyfill/DOM/HTMLCanvasElement.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ export class HTMLCanvasElement extends HTMLElement {
9494
getRootNode() {
9595
return this;
9696
}
97+
98+
get ownerDocument() {
99+
return this as any;
100+
}
97101
}
98102

99103
(<any>Canvas.prototype).toHTMLCanvas = function () {

0 commit comments

Comments
 (0)