Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Fixes #119
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jul 29, 2014
1 parent 9a64e04 commit d9ee3ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/CustomElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,6 @@ if (useNative) {
if (definition.is) {
element.setAttribute('is', definition.is);
}
// remove 'unresolved' attr, which is a standin for :unresolved.
element.removeAttribute('unresolved');
// make 'element' implement definition.prototype
implement(element, definition);
// flag as upgraded
Expand Down
10 changes: 0 additions & 10 deletions test/js/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,4 @@ suite('upgradeElements', function() {
});
});

// polyfill only tests
if (!CustomElements.useNative) {
test('unresolved attribute removed after upgrade', function() {
work.innerHTML = '<x-res unresolved>Resolved!</x-res>';
registerTestComponent('x-res', 'res');
var xres = work.firstChild;
assert.equal(xres.value, 'res');
assert.isFalse(xres.hasAttribute('unresolved'), 'unresolved is removed after upgrade');
});
}
});

0 comments on commit d9ee3ab

Please sign in to comment.