Bugfix width attribute as found in #343

This commit is contained in:
the-djmaze 2022-04-23 11:47:00 +02:00
parent af3d0dcb00
commit 3ed1872c44

View file

@ -176,7 +176,8 @@ export const
// if ('TABLE' === name || 'TD' === name) {
if (hasAttribute('width')) {
oStyle.width = getAttribute('width');
value = getAttribute('width');
oStyle.width = value.includes('%') ? value : value + 'px';
delAttribute('width');
}
value = oStyle.width;