Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

binding within style attribute breaks in IE #121

Closed
DartBot opened this issue Jun 5, 2015 · 17 comments
Closed

binding within style attribute breaks in IE #121

DartBot opened this issue Jun 5, 2015 · 17 comments

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

Originally opened as dart-lang/sdk#17075

This issue was originally filed by andriy....@gmail.com


<div style="width:{{width}};height:{{height}}"> Will work in firefox and chrome, but not in IE.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="48" height="48"hspace="10"> Comment by sethladd


Sorry, is this Polymer or Angular?


Added NeedsInfo label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This comment was originally written by andriy....@gmail.com


Pure Polymer, thanks for looking.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2156198?v=3" align="left" width="48" height="48"hspace="10"> Comment by kasperl


Added Area-Polymer, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/1081711?v=3" align="left" width="48" height="48"hspace="10"> Comment by jmesserly


Removed Area-Polymer label.
Added Pkg-Polymer, Area-Pkg labels.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch


Added this to the 1.6 milestone.
Removed Priority-Unassigned label.
Added Priority-Medium, Browser-IE labels.
Changed the title to: "binding within style attribute breaks in IE".

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch


Removed this from the 1.6 milestone.
Added Polymer-P-1 label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch


Removed Polymer-P-1 label.
Added Polymer-Milestone-Next label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch


Added PolymerMilestone-Next label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch


Removed Polymer-Milestone-Next label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2590778?v=3" align="left" width="48" height="48"hspace="10"> Comment by RWander


Still <div style="{{css}}"> doesn't work in IE only..

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2590778?v=3" align="left" width="48" height="48"hspace="10"> Comment by RWander


are there plans to include the fix of this issue in polymer 0.12.0?

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch


Just to have more information, what version of IE are you using?

We plan to release 0.12.0 fairly soon, so I don't believe this will be fixed by the time we release it. But we can easily push another version after we find what the problem is and a way to fix this.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="48" height="48"hspace="10"> Comment by zoechi


There are SO questions about this
http://stackoverflow.com/questions/25002116
http://stackoverflow.com/questions/24960402 (with a link to Polymer/polymer#270 (comment))

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2590778?v=3" align="left" width="48" height="48"hspace="10"> Comment by RWander


The simple code <div style="{{css}}"> doesn't work in both IE 10 and IE11

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch


Thanks gzoechi@! Indeed, seems this is a quite relevant link from that github issue:
  http://www.polymer-project.org/docs/polymer/databinding-compat.html#binding-to-attributes

We seem to have tests in template_binding for this as well, so that might be all you need to do to make this work in IE, change:

   <div style="{{css}}">

to

   <div _style="{{css}}">

Let us know if that fixes the issue. Cheers!


Added Waiting label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/984921?v=3" align="left" width="48" height="48"hspace="10"> Comment by jakemac53


Assuming this is stale, the _style fix should work


Added AssumedStale label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This comment was originally written by matty...@gmail.com


_style worked for me. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant