Title: [141144] branches/chromium/1364/Source/WebCore/html/parser/HTMLConstructionSite.cpp
Revision
141144
Author
[email protected]
Date
2013-01-29 12:40:37 -0800 (Tue, 29 Jan 2013)

Log Message

Merge 140537
BUG=170381
Review URL: https://codereview.chromium.org/12091046

Modified Paths

Diff

Modified: branches/chromium/1364/Source/WebCore/html/parser/HTMLConstructionSite.cpp (141143 => 141144)


--- branches/chromium/1364/Source/WebCore/html/parser/HTMLConstructionSite.cpp	2013-01-29 20:37:36 UTC (rev 141143)
+++ branches/chromium/1364/Source/WebCore/html/parser/HTMLConstructionSite.cpp	2013-01-29 20:40:37 UTC (rev 141144)
@@ -490,9 +490,10 @@
     // When a node is to be foster parented, the last template element with no table element is below it in the stack of open elements is the foster parent element (NOT the template's parent!)
     HTMLElementStack::ElementRecord* lastTemplateElement = m_openElements.topmost(templateTag.localName());
     if (lastTemplateElement && !m_openElements.inTableScope(tableTag)) {
-        task.parent = lastTemplateElement->element();
+        task.parent = toHTMLTemplateElement(lastTemplateElement->element())->content();
         return;
     }
+
 #endif
 
     HTMLElementStack::ElementRecord* lastTableElementRecord = m_openElements.topmost(tableTag.localName());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to