Index: lib/html/scripts/systemhtml.py |
diff --git a/lib/html/scripts/systemhtml.py b/lib/html/scripts/systemhtml.py |
index 40d04076105d93fcabce206c20ae1d52929ed8c5..572ca81e36e91aaae52aa24120c72153521077ad 100644 |
--- a/lib/html/scripts/systemhtml.py |
+++ b/lib/html/scripts/systemhtml.py |
@@ -84,6 +84,7 @@ class ElementConstructorInfo(object): |
info.type_name = interface_name |
info.param_infos = map(lambda tXn: ParamInfo(tXn[1], tXn[0], True), |
self.opt_params) |
+ info.requires_named_arguments = True |
return info |
_html_element_constructors = { |
@@ -185,7 +186,8 @@ def EmitHtmlElementFactoryConstructors(emitter, infos, typename, class_name, |
CONSTRUCTOR=constructor_info.ConstructorFactoryName(rename_type), |
CLASS=class_name, |
TAG=info.tag, |
- PARAMS=constructor_info.ParametersInterfaceDeclaration(rename_type)) |
+ PARAMS=constructor_info.ParametersInterfaceDeclaration( |
+ rename_type, force_optional=True)) |
for param in constructor_info.param_infos: |
inits.Emit(' if ($E != null) _e.$E = $E;\n', E=param.name) |