summaryrefslogtreecommitdiff
path: root/packages/webapi/src/lib/Image.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/webapi/src/lib/Image.ts')
-rw-r--r--packages/webapi/src/lib/Image.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/webapi/src/lib/Image.ts b/packages/webapi/src/lib/Image.ts
new file mode 100644
index 000000000..d72c33159
--- /dev/null
+++ b/packages/webapi/src/lib/Image.ts
@@ -0,0 +1,15 @@
+import * as _ from './utils'
+import { HTMLImageElement } from './HTMLImageElement'
+
+export function Image() {
+ // @ts-ignore
+ _.INTERNALS.set(this, {
+ attributes: {},
+ localName: 'img',
+ innerHTML: '',
+ shadowRoot: null,
+ shadowInit: null,
+ })
+}
+
+Image.prototype = HTMLImageElement.prototype