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

table element problems on firefox #196

Closed
faassen opened this issue Jun 27, 2013 · 1 comment
Closed

table element problems on firefox #196

faassen opened this issue Jun 27, 2013 · 1 comment

Comments

@faassen
Copy link

faassen commented Jun 27, 2013

I have this polymer element:

<!doctype html>
<polymer-element name="test-table" attributes="index size">
  <template>
    <table>
      <tbody>
        <tr template repeat="{{rows}}">
          <td template repeat="">{{content}}</td>
        </tr>
      </tbody>
    </table>
  </template>
  <script>
    Polymer('test-table', {
      index: 0,
      size: 0,
      indexChanged: function() {
         this.fetchRows();
      },
      sizeChanged: function() {
         this.fetchRows();
      },
      fetchRows: function() {
        var rows = [];
        var start = this.index;
        var end = start + this.size;
        for (var i = start; i < end; i++) {
          rows.push([{content: "Content " + i}]);
        }
        this.rows = rows;
      }
    });
  </script>
</polymer-element>

On Chrome, this works. On Firefox, in line 675 in template_element.js, things go wrong because 'template.content' is undefined. The table doesn't render.

This is the with latest master.

@frankiefu
Copy link
Member

This seems working in the latest.

Verified in Firefox 22: http://jsbin.com/uwevos/4/edit

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