Re: [w3c/webcomponents] [templates] Allow removal of boolean attributes (#705)

@jakearchibald are you talking about the default template processor? or in general? just curious.

We are facing the same issue today with our current template engine, and we went for a solution that distinguish between non-interpolation vs interpolated values:

`checked={{falseVal}}` vs `class="{{falseVal}}"`

The meaning is different if you're using quotes around it. If the parser can distinguish between them, that can be a clear indication to the processor to remove the attribute when needed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/705#issuecomment-343617184

Received on Friday, 10 November 2017 23:52:17 UTC