| Index: Source/core/html/parser/HTMLConstructionSite.cpp
|
| diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp
|
| index e6566a3dfd95301ec4a462b22c23aa9997a0d09b..9e74f169c585411620543a60577a30ee052851a8 100644
|
| --- a/Source/core/html/parser/HTMLConstructionSite.cpp
|
| +++ b/Source/core/html/parser/HTMLConstructionSite.cpp
|
| @@ -33,6 +33,7 @@
|
| #include "core/dom/DocumentFragment.h"
|
| #include "core/dom/DocumentType.h"
|
| #include "core/dom/Element.h"
|
| +#include "core/dom/ScriptLoader.h"
|
| #include "core/dom/Text.h"
|
| #include "core/html/HTMLFormElement.h"
|
| #include "core/html/HTMLHtmlElement.h"
|
| @@ -175,7 +176,7 @@ static inline void executeTask(HTMLConstructionSiteTask& task)
|
|
|
| void HTMLConstructionSite::attachLater(ContainerNode* parent, PassRefPtr<Node> prpChild, bool selfClosing)
|
| {
|
| - ASSERT(scriptingContentIsAllowed(m_parserContentPolicy) || !prpChild.get()->isElementNode() || !toScriptElementIfPossible(toElement(prpChild.get())));
|
| + ASSERT(scriptingContentIsAllowed(m_parserContentPolicy) || !prpChild.get()->isElementNode() || !toScriptLoaderIfPossible(toElement(prpChild.get())));
|
| ASSERT(pluginContentIsAllowed(m_parserContentPolicy) || !prpChild->isPluginElement());
|
|
|
| HTMLConstructionSiteTask task(HTMLConstructionSiteTask::Insert);
|
| @@ -532,7 +533,7 @@ void HTMLConstructionSite::insertForeignElement(AtomicHTMLToken* token, const At
|
| notImplemented(); // parseError when xmlns or xmlns:xlink are wrong.
|
|
|
| RefPtr<Element> element = createElement(token, namespaceURI);
|
| - if (scriptingContentIsAllowed(m_parserContentPolicy) || !toScriptElementIfPossible(element.get()))
|
| + if (scriptingContentIsAllowed(m_parserContentPolicy) || !toScriptLoaderIfPossible(element.get()))
|
| attachLater(currentNode(), element, token->selfClosing());
|
| if (!token->selfClosing())
|
| m_openElements.push(HTMLStackItem::create(element.release(), token, namespaceURI));
|
|
|