astro/packages/webapi/src/lib/Image.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
297 B
TypeScript
Raw Normal View History

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