Chromium Code Reviews| Index: lib/src/html_cleaner.dart |
| diff --git a/lib/src/html_cleaner.dart b/lib/src/html_cleaner.dart |
| index 84ff3e2b41ab11b33c0922feb612ac4d95050aa7..bd41f3829b0eea90775f2749fe6f89b402fc346b 100644 |
| --- a/lib/src/html_cleaner.dart |
| +++ b/lib/src/html_cleaner.dart |
| @@ -37,7 +37,8 @@ class _HtmlCleaner extends InfoVisitor { |
| // Hide all template elements. At the very least, we must do this for |
| // template attributes, such as `<td template if="cond">`. |
| - if (info.hasIfCondition && !info.isTemplateElement) { |
| + if (info is TemplateInfo && !info.isTemplateElement && |
| + (info.hasCondition || info.isRepeat)) { |
|
Siggi Cherem (dart-lang)
2013/04/05 20:09:24
why not info.hasLoop?
Jennifer Messerly
2013/04/05 20:34:36
wow, the comment is way out of date. I've fixed it
|
| node.attributes['style'] = 'display:none'; |
| } |