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

style="color:{{person.nameColor}}" does not work in IE11 #483

Closed
epagnoux opened this issue Apr 28, 2014 · 4 comments
Closed

style="color:{{person.nameColor}}" does not work in IE11 #483

epagnoux opened this issue Apr 28, 2014 · 4 comments

Comments

@epagnoux
Copy link

Hello, just to indicate that
submit the following to the URL example http://www.polymer-project.org/docs/polymer/polymer.html not run properly on IE11, the color does not change the style (style="color:{{person.nameColor}}").

Thank you

<polymer-element name="name-tag" attributes="person">
  <template>
    Hello! My name is <span style="color:{{person.nameColor}}">{{person.name}}</span>
  </template>
  <script>
    Polymer('name-tag', {
      created: function() {
        this.person = {
          name: "Scott",
          nameColor: "orange"
        }
      }
    });
  </script>
</polymer-element>
<polymer-element name="visitor-creds">
  <template>
    <name-tag person="{{person}}"></name-tag>
  </template>
  <script>
    Polymer('visitor-creds', {
      created: function() {
        this.person = {
          name: "Scott2",
          nameColor: "red"
        }
      }
    });
  </script>
</polymer-element>
@ebidel
Copy link
Contributor

ebidel commented Apr 28, 2014

@epagnoux
Copy link
Author

Thanks you. It works.

@epagnoux
Copy link
Author

How do you do ​​it in this case: class = "MyColor", because this example doesn't work?

 <template>
        <style>
            .MyColor
            {
                color:{{person.nameColor}}
            }  
        </style>
        <div>Hello! My name is <span class="MyColor">{{person.name}}</span></div>
    </template>

@ebidel
Copy link
Contributor

ebidel commented Apr 28, 2014

Bindings inside of <style> are only supported under native Shadow DOM. See #270

@ebidel ebidel closed this as completed Apr 28, 2014
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