When converting an element to a list element, we didn't preserve that original element's attributes. As a consequence the text direction was lost. closes odoo/odoo#90247 X-original-commit: 0731ff677491d80540fa2ffc645fd2b471a9f61c Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>