Previously, when changing the tag of a text node within a list, it transferred the list's attributes to the newly created tag. Ideally, this should only carry over the attributes of paragraph-related elements and not of lists. task-3609500 closes odoo/odoo#153328 X-original-commit: 58829be8fee0d3330427a467c62280b6d6edb147 Signed-off-by: Antoine Guenet (age) <age@odoo.com>