From 577bbc90555b690f61071a2a42853d14c98c3b25 Mon Sep 17 00:00:00 2001 From: Haoran Tang Date: Sun, 17 Nov 2024 08:43:53 -0800 Subject: [PATCH] Fix: Mis-nested form tags inside template parsed incorrectly Ensures that form end tags inside templates forcibly close any inner tags, aligning behavior with HTML5 standard: https://html.spec.whatwg.org/multipage/parsing.html#parsing:~:text=An%20end%20tag%20whose%20tag%20name%20is%20%22form%22 Bug: 352896478 TEST=Added web test case to check parsing behavior with nested form tags. Change-Id: Ia3ad421f8c6875942ce0a95cb4c5dcfc8c6833aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6009220 Commit-Queue: Mason Freed Reviewed-by: Di Zhang Reviewed-by: Mason Freed Cr-Commit-Position: refs/heads/main@{#1384096} --- .../parsing/misnested-form-in-template.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 html/syntax/parsing/misnested-form-in-template.html diff --git a/html/syntax/parsing/misnested-form-in-template.html b/html/syntax/parsing/misnested-form-in-template.html new file mode 100644 index 00000000000000..aafcc8379c01f4 --- /dev/null +++ b/html/syntax/parsing/misnested-form-in-template.html @@ -0,0 +1,16 @@ + + + + +
+ AH +
+ +