UNPKG

svgdom

Version:

Straightforward DOM implementation for SVG, HTML and XML

23 lines (20 loc) 423 B
import { HTMLElement } from './HTMLElement.js' export class HTMLScriptElement extends HTMLElement {} Object.defineProperties(HTMLScriptElement.prototype, { src: { get () { return this.getAttribute('src') }, set (val) { this.setAttribute('src', val) } }, type: { get () { return this.getAttribute('type') }, set (val) { this.setAttribute('type', val) } } })