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

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

Issue 2462143003: [Spec compat] form element pointer should be set iff no template element on the stack of open eleme… (Closed)
Patch Set: mod the test case a bit Created 4 years, 1 month 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
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 3304c74ba11a7685ee032f54d15b7060f456ccf6..613f0e44e4c7a4a2301441c93df06e21cdf7efa7 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
@@ -676,7 +676,7 @@ void HTMLConstructionSite::insertHTMLFormElement(AtomicHTMLToken* token,
HTMLElement* element = createHTMLElement(token);
ASSERT(isHTMLFormElement(element));
HTMLFormElement* formElement = toHTMLFormElement(element);
- if (!ownerDocumentForCurrentNode().isTemplateDocument())
+ if (!openElements()->hasTemplateInHTMLScope())
m_form = formElement;
formElement->setDemoted(isDemoted);
attachLater(currentNode(), formElement);

Powered by Google App Engine
This is Rietveld 408576698