From 5c95b8cccc0d72f7ca3afb1162b9528c1222eb3c Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 8 Jun 2012 11:53:17 -0700 Subject: fix(startingTag): make tag name always lowercase some browsers (IE) always provide the nodeName as upper-case --- src/Angular.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Angular.js') diff --git a/src/Angular.js b/src/Angular.js index 20f2e722..c3b57c10 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -755,7 +755,9 @@ function startingTag(element) { // are not allowed to have children. So we just ignore it. element.html(''); } catch(e) {} - return jqLite('
').append(element).html().match(/^(<[^>]+>)/)[1]; + return jqLite('
').append(element).html(). + match(/^(<[^>]+>)/)[1]. + replace(/^<([\w\-]+)/, function(match, nodeName) { return '<' + lowercase(nodeName); }); } -- cgit v1.2.3