During paste HTML, an inline element or a textNode should never be inserted outside of the targeted initial container. Those kind of orphans elements should never be present in an HTML paste data, but better safe than sorry. Part-of: odoo/odoo#95347 # Conflicts: # addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js Part-of: odoo/odoo#95445