Index: Source/build/scripts/templates/ElementFactory.cpp.tmpl |
diff --git a/Source/build/scripts/templates/ElementFactory.cpp.tmpl b/Source/build/scripts/templates/ElementFactory.cpp.tmpl |
index 9cc1c027fbd88626bfffae5ff000d13dd99bb86d..fae70e2179a28487b96a7ac47867720f418d2486 100644 |
--- a/Source/build/scripts/templates/ElementFactory.cpp.tmpl |
+++ b/Source/build/scripts/templates/ElementFactory.cpp.tmpl |
@@ -52,7 +52,7 @@ static PassRefPtr<{{namespace}}Element> {{tag|symbol}}Constructor( |
return {{fallback_interface}}::create(tagName, document); |
{%- endif %} |
return {{tag.interface}}::create( |
-{%- if namespace != 'HTML' or tag.multipleTagNames -%} tagName, {% endif -%} |
+{%- if tag.multipleTagNames -%} tagName, {% endif -%} |
document |
{%- if namespace == 'HTML' and tag.constructorNeedsFormElement %}, formElement{% endif -%} |
{%- if tag.constructorNeedsCreatedByParser %}, createdByParser{% endif -%} |