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

Commit

Permalink
Fixes #110
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed May 21, 2014
1 parent 9cfef1f commit 107ebde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/CustomElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ if (useNative) {
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/
// index.html#dfn-attribute-changed-callback
function changeAttribute(name, value, operation) {
name = name.toLowerCase();
var oldValue = this.getAttribute(name);
operation.apply(this, arguments);
var newValue = this.getAttribute(name);
Expand Down
2 changes: 1 addition & 1 deletion test/html/attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
chai.assert.isFalse(xfoo.removeAttributeOk);
chai.assert.isFalse(xfoo.setAttributeOk);
chai.assert.isFalse(xfoo.attributeChangedOk);
xfoo.setAttribute('squid', 'tentacles');
xfoo.setAttribute('Squid', 'tentacles');
chai.assert.isTrue(xfoo.setAttributeOk);
chai.assert.isTrue(xfoo.attributeChangedOk);
xfoo.attributeChangedOk = false;
Expand Down

0 comments on commit 107ebde

Please sign in to comment.