We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a6670 commit 41d58d7Copy full SHA for 41d58d7
src/undom.js
@@ -92,6 +92,15 @@ export default function undom() {
92
super(nodeType || 1, nodeName); // ELEMENT_NODE
93
this.attributes = [];
94
this.__handlers = {};
95
+ this.style = {};
96
+ Object.defineProperty(this, 'className', {
97
+ set: val => { this.setAttribute('class', val); },
98
+ get: () => this.getAttribute('class')
99
+ });
100
+ Object.defineProperty(this.style, 'cssText', {
101
+ set: val => { this.setAttribute('style', val); },
102
+ get: () => this.getAttribute('style')
103
104
}
105
106
get children() {
0 commit comments