googlearchive / TemplateBinding

TemplateBinding Prolyfill
290 stars 61 forks source link

should {{ bindings }} work in script and style tags? #157

Closed jmesserly closed 10 years ago

jmesserly commented 10 years ago

My intuition says it should not work, but apparently it does right now: https://groups.google.com/a/dartlang.org/forum/#!topic/web/LXeXL6kXYLI

if bindings work inside style doesn't that mess up the ability of tools (such as Vulcanizer) to inline styles/scripts? does script have the same issue?

rafaelw commented 10 years ago

Binding should definitely not work in <script>, but <style> is more complicated. There are clear uses for binding to styles, and also some risks. Ideally, we'd be able to parse styles and process bindings within styles -- and disallow specific bindings, but that's probably not feasible in the near term.

jmesserly commented 10 years ago

going to close this, since it's apparently working as intended (for style). will open a new issue for script