Skip to content

Commit 504cb64

Browse files
author
Avaer Kazmer
committed
Add setAttribute/removeAttribute local editState method handling
1 parent 3bcac60 commit 504cb64

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,14 @@
585585
}
586586
break;
587587
}
588-
case 'setAttribute':
589-
case 'removeAttribute':
590-
throw new Error('not implemented');
588+
case 'setAttribute': {
589+
el.setAttribute(key, value);
590+
break;
591+
}
592+
case 'removeAttribute': {
593+
el.removeAttribute(key);
594+
break;
595+
}
591596
case 'appendChild': {
592597
const childNode = el.childNodes[key];
593598
const newNode = _parseHtml(value);

0 commit comments

Comments
 (0)