[FIX] web_editor: prevent crash when filtering SVGs elements
When an SVG element changes and is filtered by the `filterMutationRecords` method, the method tries to split its className (Since [1]). This is not supported by the browser however, because the className property of an SVGElement is not a String. Rather, it is an SVGAnimatedString [2]. This commit fixes that by using the getAttribute method instead. Ensuring that the attribute returned is always a String. [1]: https://github.com/odoo/odoo/commit/1c25ddb42393b136cac2a0ee0b9b7280fd803e7d [2]: https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString opw-3077287 opw-3074434 closes odoo/odoo#106671 Signed-off-by:David Monjoie (dmo) <dmo@odoo.com>
Loading
Please register or sign in to comment