Chromium Code Reviews| Index: tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate |
| diff --git a/tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate b/tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate |
| index 9f07087b83897040b0300c4e9aa1f983e46e437d..13eabab0f0a3cfdf02e9ec4d450cb2708507abb0 100644 |
| --- a/tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate |
| +++ b/tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate |
| @@ -5,7 +5,12 @@ |
| part of $LIBRARYNAME; |
| $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| - factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.createSvgSvgElement(); |
| + factory $CLASSNAME() { |
| + final el = new SvgElement.tag("svg"); |
| + // The SVG spec requires the version attribute to match the spec version |
|
Jennifer Messerly
2013/08/17 06:07:07
curious why we need to do this? why doesn't DOM do
blois
2013/08/19 22:02:09
Not sure- this code was just moved from the factor
|
| + el.attributes['version'] = "1.1"; |
| + return el; |
| + } |
| $!MEMBERS |
| } |