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 masonf@chromium.org
Reviewed-by: Di Zhang dizhangg@chromium.org
Reviewed-by: Mason Freed masonf@chromium.org
Cr-Commit-Position: refs/heads/main@{#1384096}