diff options
| author | Misko Hevery | 2010-04-19 17:02:46 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-19 17:02:46 -0700 |
| commit | 259c2bba4bf1fc4f0d4cf5bcda4ffef0fb5a615a (patch) | |
| tree | 6bff2acb37421eb70539001d5477fbbac77231e5 /src/Compiler.js | |
| parent | 47ec2187776658ad9ee2a9c71a28ddb860bec43a (diff) | |
| download | angular.js-259c2bba4bf1fc4f0d4cf5bcda4ffef0fb5a615a.tar.bz2 | |
last failing ie test remaining
Diffstat (limited to 'src/Compiler.js')
| -rw-r--r-- | src/Compiler.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Compiler.js b/src/Compiler.js index a762b5fd..96df88fb 100644 --- a/src/Compiler.js +++ b/src/Compiler.js @@ -182,10 +182,15 @@ function eachNode(element, fn){ } function eachAttribute(element, fn){ - var i, attrs = element[0].attributes || [], chld, attr, attrValue = {}; + var i, attrs = element[0].attributes || [], chld, attr, name, value, attrValue = {}; for (i = 0; i < attrs.length; i++) { attr = attrs[i]; - attrValue[attr.name] = attr.value; + name = attr.name; + value = attr.value; + if (msie && name == 'href') { + value = decodeURIComponent(element[0].getAttribute(name, 2)); + } + attrValue[name] = value; } foreachSorted(attrValue, fn); } |
