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;
|
break;
|
||||||
|
|
||||||
|
case 'boolean':
|
||||||
|
if(attr)
|
||||||
|
elem.setAttribute(key, '');
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if(key === 'className')
|
if(key === 'className')
|
||||||
key = 'class';
|
key = 'class';
|
||||||
|
|
Loading…
Reference in a new issue