Skip to content

<button> is both and neither a block and a span element #173

@morandat

Description

@morandat

< 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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions