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

Internet explorer is not binding inside <select> tag #692

Closed
ronybarbosa opened this issue Aug 7, 2014 · 1 comment
Closed

Internet explorer is not binding inside <select> tag #692

ronybarbosa opened this issue Aug 7, 2014 · 1 comment

Comments

@ronybarbosa
Copy link

Hi Guys,

I am having the following issue:

I am trying to bind data in a select box:

    <label for="market">Market</label>
    <select on-change="{{updateMarket}}" name="market" id="market" class="long" onchange="">
              <template repeat="{{market in markets}}">
                    <option value="{{market}}" >{{market}}</option>
              </template>
     </select>

This code is binding ok on google chrome and firefox, but is not binding on Internet explorer.

You can check the live demo here :

http://widget.centraltorpedos.com.br/gmaps/

@jmesserly
Copy link
Contributor

So, IE hasn't implemented template element yet: http://caniuse.com/template

Until then, then cross browser workaround is to do:

    <label for="market">Market</label>
    <select on-change="{{updateMarket}}" name="market" id="market" class="long" onchange="">
             <option template repeat="{{market in markets}}" value="{{market}}" >{{market}}</option>
     </select>

not sure if it helps, but here's a test: https://github.com/Polymer/TemplateBinding/blob/master/tests/tests.js#L2113

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