[FIX] web_editor: prevent <li> in <td>

When converting a list-group to a table, we sometimes ended up with <li>
in <td> element, which is non-sense and is hereby corrected.

X-original-commit: 41eda109d2fbc0eb6616fb03102a205b945ab9b2
Part-of: odoo/odoo#81540
This commit is contained in:
Antoine Guenet
2021-12-16 15:58:20 +00:00
parent ee809da96f
commit c57b3ef541
@@ -606,6 +606,8 @@ function listGroupToTable($editable) {
$row.append($col);
$table.append($row);
$(child).remove();
} else if (child.nodeName === 'LI') {
$table.append(...child.childNodes);
} else {
$table.append(child);
}