aboutsummaryrefslogtreecommitdiffstats
path: root/src/markups.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/markups.js')
-rw-r--r--src/markups.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/markups.js b/src/markups.js
index 27f74518..f63dd146 100644
--- a/src/markups.js
+++ b/src/markups.js
@@ -69,6 +69,7 @@ angularTextMarkup('OPTION', function(text, textNode, parentElement){
});
var NG_BIND_ATTR = 'ng:bind-attr';
+var SPECIAL_ATTRS = {'ng:src': 'src', 'ng:href': 'href'};
angularAttrMarkup('{{}}', function(value, name, element){
// don't process existing attribute markup
if (angularDirective(name) || angularDirective("@" + name)) return;
@@ -79,7 +80,7 @@ angularAttrMarkup('{{}}', function(value, name, element){
if (hasBindings(bindings)) {
element.removeAttr(name);
bindAttr = fromJson(element.attr(NG_BIND_ATTR) || "{}");
- bindAttr[name] = value;
+ bindAttr[SPECIAL_ATTRS[name] || name] = value;
element.attr(NG_BIND_ATTR, toJson(bindAttr));
}
});