Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp

Issue 2592333002: Push-pop custom elements reaction stack when the parser inserts elements (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/custom-elements/spec/parsing.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
index bb6717f9a4c09e7483dfad72333ad94d9ab49731..aaa9118db9fba174a2646b6f74d8bce6ff78aa9a 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
@@ -103,6 +103,9 @@ static inline void insert(HTMLConstructionSiteTask& task) {
if (isHTMLTemplateElement(*task.parent))
task.parent = toHTMLTemplateElement(task.parent.get())->content();
+ // https://html.spec.whatwg.org/#insert-a-foreign-element
+ // 3.1, (3) Push (pop) an element queue
+ CEReactionsScope reactions;
if (task.nextChild)
task.parent->parserInsertBefore(task.child.get(), *task.nextChild);
else
« no previous file with comments | « third_party/WebKit/LayoutTests/custom-elements/spec/parsing.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698