Ported boolean attribute support.

This commit is contained in:
flash 2024-01-08 13:36:47 +00:00
parent b4f5dd0660
commit f30cf41f86

View file

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