Skip to content

Commit 7e404ad

Browse files
authored
Update dom-element.js
1 parent 9ace94a commit 7e404ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dom-element.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function DOMElement(tagName, owner, namespace) {
1616
var ns = namespace === undefined ? htmlns : (namespace || null)
1717

1818
this.tagName = ns === htmlns ? String(tagName).toUpperCase() : tagName
19+
this.nodeName = this.tagName
1920
this.className = ""
2021
this.dataset = {}
2122
this.childNodes = []
@@ -26,7 +27,7 @@ function DOMElement(tagName, owner, namespace) {
2627
this._attributes = {}
2728

2829
if (this.tagName === 'INPUT') {
29-
this.type = 'text';
30+
this.type = 'text'
3031
}
3132
}
3233

0 commit comments

Comments
 (0)