diff --git a/src/ng/compile.js b/src/ng/compile.js index e1dfda6fa2a4..b33e830a42c0 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -298,7 +298,7 @@ function $CompileProvider($provide) { // href property always returns normalized absolute url, so we can match against that normalizedVal = urlSanitizationNode.href; - if (!normalizedVal.match(urlSanitizationWhitelist)) { + if (normalizedVal !== '' && !normalizedVal.match(urlSanitizationWhitelist)) { this[key] = value = 'unsafe:' + normalizedVal; } }