odoo/odoo#181451

Created by fw-bot
Merged at 00b3a04c1b520151e48d77b4eee25df941aa2cbf

Statuses:

label
odoo-dev:18.0-16.0-table-as-direct-child-of-list-dhba-3NjU-fw
head
1e0e046c96418a98b41b53822a4240960008e2c1
merged
8 months ago by Editor, David Monjoie (dmo)
odoo/odoo
16.0 #164304
17.0 #178016
saas-17.1 #178034
saas-17.2 #178205
saas-17.4 #178233
18.0 #181451
saas-18.1
saas-18.2
saas-18.3
master #178256

[FW][FIX] web_editor: inserting a table inside empty list item

Current behavior before PR:

  • When a table was created within an empty list item (li), it was inserted directly inside the ul and as a sibling of the list item (li). Furthermore, an additional li element was generated after the table.

Desired behavior after PR is merged:

  • Now, when a table created inside empty li elements, it will be correctly inserted within the list item itself instead of the ul. Additionally, no extra li element will be generated after the table.

task-3550599

Forward-Port-Of: #164304