Index: sky/framework/sky-element/TemplateBinding.sky |
diff --git a/sky/framework/sky-element/TemplateBinding.sky b/sky/framework/sky-element/TemplateBinding.sky |
index 7f0a9041e3f06ad88c7f845b522ef06c6ba028e7..65d9bb5d3667a33e59b649ff83040507f8130be1 100644 |
--- a/sky/framework/sky-element/TemplateBinding.sky |
+++ b/sky/framework/sky-element/TemplateBinding.sky |
@@ -57,8 +57,15 @@ function attributeBinding(el, name) { |
}; |
} |
+function bindAsAttribute(el, name) { |
+ if (name == 'style' || name == 'class') |
+ return true; |
+ if (el.tagName == 'a' && name == 'href') |
+ return true; |
+} |
+ |
Element.prototype.bind = function(name, value, oneTime) { |
- if (name !== 'style' && name !== 'class') |
+ if (!bindAsAttribute(this, name)) |
return Node.prototype.bind.call(this, name, value, oneTime); |
if (oneTime) |
@@ -121,7 +128,7 @@ var templateAttributeDirectives = { |
function isTemplate(el) { |
if (el.isTemplate_ === undefined) |
- el.isTemplate_ = el.tagName == 'TEMPLATE'; |
+ el.isTemplate_ = el.tagName == 'template'; |
return el.isTemplate_; |
} |