This reverts commit 404fa816403b60c0d6e36bef6f2c73f020ea5ff3. The commit acts on some special case. But it seem to break some case when there is a t-ignore or other directive at that same element. Reverting because a good solution would need to take into account t-attr-class and this might not be possible easily. opw-2122947 closes odoo/odoo#42599 X-original-commit: da62f7e65bd1df67138fe9a82000f800dc0ff84c Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>