| Index: Source/core/dom/ScriptLoader.cpp
|
| diff --git a/Source/core/dom/ScriptLoader.cpp b/Source/core/dom/ScriptLoader.cpp
|
| index edab8357141e7ba6def91fd8e3f6ea6c50df2593..b528db782701930d24d8b428158fbd67c40a3150 100644
|
| --- a/Source/core/dom/ScriptLoader.cpp
|
| +++ b/Source/core/dom/ScriptLoader.cpp
|
| @@ -184,7 +184,7 @@ bool ScriptLoader::prepareScript(const TextPosition& scriptStartPosition, Legacy
|
| m_forceAsync = true;
|
|
|
| // FIXME: HTML5 spec says we should check that all children are either comments or empty text nodes.
|
| - if (!client->hasSourceAttribute() && !m_element->firstChild())
|
| + if (!client->hasSourceAttribute() && !m_element->hasChildren())
|
| return false;
|
|
|
| if (!m_element->inDocument())
|
|
|