blob: fd9e5f6059a1f700efd5e8e6de8863d814e1f5c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { HTMLElement } from './Element'
import * as _ from './utils'
export class HTMLImageElement extends HTMLElement {
get src(): string {
return _.internalsOf(this, 'HTMLImageElement', 'src').src
}
set src(value) {
const internals = _.internalsOf(this, 'HTMLImageElement', 'src')
internals.src = String(value)
}
}
_.allowStringTag(HTMLImageElement)
|