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

Certain HTML attributes need special live-binding #494

Closed
daffl opened this issue Oct 11, 2013 · 0 comments
Closed

Certain HTML attributes need special live-binding #494

daffl opened this issue Oct 11, 2013 · 0 comments
Milestone

Comments

@daffl
Copy link
Contributor

daffl commented Oct 11, 2013

This is a follow up on issue #157 (#234, #241, #321, #342, #343) and also related to #488. Some HTML attributes need special treatment when live binding:

  • src - Should not be set with the live binding placeholder (__!!__) because it triggers a request to __!!__.
  • style - Can not be set in IE with the live binding placeholder (e.g. style="background-color: {{color}}" -> background-color: __!!__) because IE tries to parse it into a CSS stylesheet and just drops any illegal CSS. It also looks like the attribute shouldn't be set using element.setAttribute('style') but element.style.cssText instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant