2024-10-16 17:12:08 +08:00

29 lines
445 B
JavaScript

/* eslint-disable */
import Node from './Node'
export default class Element extends Node {
constructor() {
super()
this.className = ''
this.children = []
}
setAttribute(name, value) {
this[name] = value
}
getAttribute(name) {
return this[name]
}
setAttributeNS(name, value) {
this[name] = value
}
getAttributeNS(name) {
return this[name]
}
}