From 7c32ab6c55068107b0f86db1486484ed70322f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20B=C3=B6hm?= <188768+fb55@users.noreply.github.com> Date: Sun, 8 May 2022 11:36:45 +0100 Subject: [PATCH] fix(parser): Have `` close `

` Fixes #533 A PR with a test was opened at https://github.com/html5lib/html5lib-tests/pull/146 --- packages/parse5/lib/parser/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/parse5/lib/parser/index.ts b/packages/parse5/lib/parser/index.ts index 00fb7af8c..3f53c4cb1 100644 --- a/packages/parse5/lib/parser/index.ts +++ b/packages/parse5/lib/parser/index.ts @@ -2466,6 +2466,7 @@ function endTagInBody(p: Parser, token: TagToke case $.MAIN: case $.MENU: case $.ASIDE: + case $.BUTTON: case $.CENTER: case $.FIGURE: case $.FOOTER: