Skip to content

Commit

Permalink
Use a data attribute for cell content id
Browse files Browse the repository at this point in the history
The current 'cell-content-id' is a non-standard attribute for a div element
  • Loading branch information
tomivirkki committed Oct 18, 2016
1 parent a263ed4 commit d833b3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vaadin-grid-table-cell.html
Expand Up @@ -108,10 +108,10 @@
if (Polymer.Settings.useShadow) {
// Shadow
target._contentIndex = target._contentIndex + 1 || 0;
this._cellContent.setAttribute('cell-content-id', target._contentIndex);
this._cellContent.setAttribute('data-cell-content-id', target._contentIndex);

var content = document.createElement('content');
content.setAttribute('select', '[cell-content-id="' + target._contentIndex +'"]');
content.setAttribute('select', '[data-cell-content-id="' + target._contentIndex +'"]');
Polymer.dom(this).appendChild(content);
} else {
// Non-shadow
Expand Down

0 comments on commit d833b3c

Please sign in to comment.