aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 9a1ab4a2..f9047d32 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -273,7 +273,10 @@ function jqLiteWrap(element) {
if (element) {
if (isString(element)) {
var div = document.createElement('div');
- div.innerHTML = element;
+ // Read about the NoScope elements here:
+ // http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx
+ div.innerHTML = '<div>&nbsp;</div>' + element; // IE insanity to make NoScope elements work!
+ div.removeChild(div.firstChild); // remove the superfluous div
element = new JQLite(div.childNodes);
} else if (!(element instanceof JQLite)) {
element = new JQLite(element);