googlearchive / TemplateBinding

TemplateBinding Prolyfill
290 stars 61 forks source link

`template` and `repeat` + `if` attributes #194

Closed mysticatea closed 9 years ago

mysticatea commented 9 years ago

Code: http://jsbin.com/bogahe/1/edit

I tried to use template if attribute in <td> element. But <td> element was instantiated even if the template if expression is false. (The <td> instance has if attribute; its value is false.)

Is this behavior by spec?

Thanks.

nevir commented 9 years ago

This seems like a bug, or at least the tests would suggest that, and interestingly it even occurs when not using the item in collection syntax from polymer-expressions: http://jsbin.com/fezol/1/edit

jakemac53 commented 9 years ago

This should be fixed as of https://github.com/Polymer/TemplateBinding/pull/210

mysticatea commented 9 years ago

Thanks a lot!