aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/compile.js
diff options
context:
space:
mode:
authorIgor Minar2012-08-29 04:01:13 -0700
committerIgor Minar2012-08-30 10:52:36 -0700
commitbb9badeb2a53698218ef891e7ae6d0e3a810fe9b (patch)
treeb21e133e28bd29a374ec6e0170fe47c2a44c9e14 /src/ng/compile.js
parentc287c8361dedbd8a77c9d60eb93abb3b50e9edcd (diff)
downloadangular.js-bb9badeb2a53698218ef891e7ae6d0e3a810fe9b.tar.bz2
fix(jqLite): better support for xhtml
it turns out that some stuff doesn't work in xhtml as it does in html. for example   can't be innerHTML-ed and auto-closing of elements doesn't work. the reporter of the referenced issue claimed that innerHTML vs text on script made a difference but that doesn't appear to be true in my testing. I'm not including test for this because testacular doesn't currently run tests in xhtml yet. Closes #1301
Diffstat (limited to 'src/ng/compile.js')
-rw-r--r--src/ng/compile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 89f46af6..a569ca8e 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -319,7 +319,7 @@ function $CompileProvider($provide) {
// not be able to attach scope data to them, so we will wrap them in <span>
forEach($compileNode, function(node, index){
if (node.nodeType == 3 /* text node */) {
- $compileNode[index] = jqLite(node).wrap('<span>').parent()[0];
+ $compileNode[index] = jqLite(node).wrap('<span></span>').parent()[0];
}
});
var compositeLinkFn = compileNodes($compileNode, transcludeFn, $compileNode, maxPriority);