Index: Source/core/html/parser/HTMLConstructionSite.cpp |
diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp |
index e5e2efe67145ab056b18f4b28a1d6e567f18867c..7ebe9699c82775c1df9a640b23f6bc954d5a9359 100644 |
--- a/Source/core/html/parser/HTMLConstructionSite.cpp |
+++ b/Source/core/html/parser/HTMLConstructionSite.cpp |
@@ -744,6 +744,7 @@ PassRefPtr<Element> HTMLConstructionSite::createHTMLElement(AtomicHTMLToken* tok |
// to occur after construction to allow better code sharing here. |
RefPtr<Element> element = HTMLElementFactory::createHTMLElement(token->name(), document, form, true); |
setAttributes(element.get(), token, m_parserContentPolicy); |
+ element->finishParsingAttributes(); |
ASSERT(element->isHTMLElement()); |
return element.release(); |
} |