Ported boolean attribute support.

This commit is contained in:
flash 2024-01-08 13:36:47 +00:00
parent b4f5dd0660
commit f30cf41f86
1 changed files with 5 additions and 0 deletions

View File

@ -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';