< button > tags are almost always expanded as text (sorry I can't anymore figure out the only case where there are well interpreted).
It comes from the fact that button is both in HTML_SPAN_ELEMENTS/HTML_BLOCK_ELEMENTS and in HTML_CONTENT_MODEL_SPAN/HTML_CONTENT_MODEL_BLOCK.
Removing button from HTML_BLOCK_ELEMENTS seems to fix everything ... but I'm not sure about all side-effects.
< button > tags are almost always expanded as text (sorry I can't anymore figure out the only case where there are well interpreted).
It comes from the fact that button is both in HTML_SPAN_ELEMENTS/HTML_BLOCK_ELEMENTS and in HTML_CONTENT_MODEL_SPAN/HTML_CONTENT_MODEL_BLOCK.
Removing button from HTML_BLOCK_ELEMENTS seems to fix everything ... but I'm not sure about all side-effects.