Ported boolean attribute support.
This commit is contained in:
parent
b4f5dd0660
commit
f30cf41f86
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ const $e = function(info, attrs, child, created) {
|
|||
}
|
||||
break;
|
||||
|
||||
case 'boolean':
|
||||
if(attr)
|
||||
elem.setAttribute(key, '');
|
||||
break;
|
||||
|
||||
default:
|
||||
if(key === 'className')
|
||||
key = 'class';
|
||||
|
|
Loading…
Reference in a new issue