diff options
| author | Alexandre Potvin Latreille | 2013-12-19 12:21:14 +0000 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-12-19 12:22:58 +0000 |
| commit | c7a1d1ab0b663edffc1ac7b54deea847e372468d (patch) | |
| tree | 575c6c6263d4b54df940a7c908adc0dddf0a6f34 /src/ng/compile.js | |
| parent | 26d43cacdc106765bd928d41600352198f887aef (diff) | |
| download | angular.js-c7a1d1ab0b663edffc1ac7b54deea847e372468d.tar.bz2 | |
fix($compile): remove invalid IE exceptional case for `href`
It appears that this exceptional case was only valid for IE<8 and that for IE>=8 it
was actually causing a bug with the `ng-href-attr` directive on `<a>` elements.
Closes #5479
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js index 3e5a2479..9285b253 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -1009,9 +1009,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { nName = directiveNormalize(name.toLowerCase()); attrsMap[nName] = name; - attrs[nName] = value = trim((msie && name == 'href') - ? decodeURIComponent(node.getAttribute(name, 2)) - : attr.value); + attrs[nName] = value = trim(attr.value); if (getBooleanAttrName(node, nName)) { attrs[nName] = true; // presence means true } |
