Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.9] hidden$="{{isHidden}}" vs hidden=$"{{isHidden}}" #1548

Closed
gertcuykens opened this issue May 16, 2015 · 4 comments
Closed

[0.9] hidden$="{{isHidden}}" vs hidden=$"{{isHidden}}" #1548

gertcuykens opened this issue May 16, 2015 · 4 comments

Comments

@gertcuykens
Copy link

The second one is much more easier and faster to read for humans, is it technically possible or are we talking html violation here?

hidden$="{{isHidden}}"
hidden=$"{{isHidden}}"

@gertcuykens
Copy link
Author

I can also live with this
hidden="${{isHidden}}"

@gertcuykens
Copy link
Author

hidden=${{isHidden}}

@kevinpschaaf
Copy link
Member

The only reason we use this syntax is because IE validates and will excise any invalid attribute content (like {{) for certain attributes like href and style before Polymer ever gets to see it. Using $="..." is a workaround, since the attribute name becomes href$ and is thus not validated. It is an ergonomic compromise for cross-platform capability.

@gertcuykens
Copy link
Author

Ok thanks for answering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants