whatwg / html

HTML Standard
https://html.spec.whatwg.org/multipage/
Other
8.03k stars 2.62k forks source link

Redundant step for button in body #10476

Open blr-Oliver opened 2 months ago

blr-Oliver commented 2 months ago

What is the issue with the HTML Standard?

For "in body" insertion mode hadling of button start tag requires following steps (excerpt):

1.2. Generate implied end tags. 1.3. Pop elements from the stack of open elements until a button element has been popped from the stack.

Generate implied end tags pops all implicitly closable elements from the stack until an explicitly closable is reached. And then step 1.3 continues to pop any elements up to nearest button element (note that button is not implicitly closable). So, generating implied end tags can be removed because it's completely covered by the next step.

annevk commented 2 months ago

Yeah, this seems like a reasonable change. I thought there might be a conformance difference, but a parse error is already reported right before.