astro/packages/webapi/src/lib/Image.ts
2022-06-06 16:49:53 +00:00

15 lines
297 B
TypeScript

import { HTMLImageElement } from './HTMLImageElement'
import * as _ from './utils'
export function Image() {
// @ts-ignore
_.INTERNALS.set(this, {
attributes: {},
localName: 'img',
innerHTML: '',
shadowRoot: null,
shadowInit: null,
})
}
Image.prototype = HTMLImageElement.prototype