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 f6c165106e9d56a71de7c46dc2e18f389fa9e550..8727114072b430e3379373249602ea89b025e008 100644 |
--- a/Source/build/scripts/templates/ElementFactory.cpp.tmpl |
+++ b/Source/build/scripts/templates/ElementFactory.cpp.tmpl |
@@ -51,7 +51,9 @@ static PassRefPtr<{{namespace}}Element> {{tag|symbol}}Constructor( |
if (!RuntimeEnabledFeatures::{{tag.runtimeEnabled}}Enabled()) |
return {{fallback_interface}}::create(tagName, document); |
{%- endif %} |
- return {{tag.interface}}::create(tagName, document |
+ return {{tag.interface}}::create( |
+{%- if namespace != 'HTML' or tag.multipleTagNames -%} tagName, {% endif -%} |
+ document |
{%- if namespace == 'HTML' and tag.constructorNeedsFormElement %}, formElement{% endif -%} |
{%- if tag.constructorNeedsCreatedByParser %}, createdByParser{% endif -%} |
); |