Fix `style` attribute serialization

master
Vitaliy Filippov 2021-09-02 23:52:06 +03:00
parent 1c59723cd1
commit 0423c78849
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ function renderToHtml(tree)
}
else if (k == 'style' && v instanceof Object)
{
v = Object.keys(v).map(sk => sk.replace(/[A-Z]/g, m => '-'+m.toLowerCase())+': '+v[sk]);
v = Object.keys(v).map(sk => sk.replace(/[A-Z]/g, m => '-'+m.toLowerCase())+': '+v[sk]).join('; ');
}
else if (k == 'value' && tag == 'textarea')
{