From 22fb0ac417eb61d1419e88f09897c77cdb1821e7 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Wed, 5 May 2021 08:27:17 -0700 Subject: [PATCH] Force a new token chunk after a declarative shadow DOM end-tag. This ensures that that a DSD root is always at the end of a token chunk. This is important because the parser can only yield or pause at token chunk boundaries. Pausing may be forced by a declarative Shadow DOM shadow root, if it includes a stylesheet, which blocks the HTML parser. Bug: 904966 Change-Id: Icb170b7dd15910661dd3245f6cb277d13eec0ad7 Fixed: 1203645 --- ...larative-parser-interaction.tentative.html | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 shadow-dom/declarative/declarative-parser-interaction.tentative.html diff --git a/shadow-dom/declarative/declarative-parser-interaction.tentative.html b/shadow-dom/declarative/declarative-parser-interaction.tentative.html new file mode 100644 index 00000000000000..473131ed251588 --- /dev/null +++ b/shadow-dom/declarative/declarative-parser-interaction.tentative.html @@ -0,0 +1,39 @@ + + +Declarative Shadow DOM + + + + + + + + +This test should not crash, and there should be two lines of text visible below. + + +

Line 1

+
+ + + +

Line 2

+
+ + \ No newline at end of file