diff options
| author | Igor Minar | 2013-01-09 22:07:33 -0800 |
|---|---|---|
| committer | Igor Minar | 2013-01-14 21:59:23 -0800 |
| commit | 2ba458387d19543b45c3bfdbe8db719d2c0f1f15 (patch) | |
| tree | 52810842afaf39a2dc85a4b3db2ee3f07cdd5734 /src | |
| parent | 98489a1d0cf289fc2261a02539b96d265cef8f09 (diff) | |
| download | angular.js-2ba458387d19543b45c3bfdbe8db719d2c0f1f15.tar.bz2 | |
fix($compile): safely create transclude comment nodes
Closes #1740
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/compile.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js index 9ed7f107..08c161f7 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -575,7 +575,7 @@ function $CompileProvider($provide) { if (directiveValue == 'element') { $template = jqLite(compileNode); $compileNode = templateAttrs.$$element = - jqLite('<!-- ' + directiveName + ': ' + templateAttrs[directiveName] + ' -->'); + jqLite(document.createComment(' ' + directiveName + ': ' + templateAttrs[directiveName] + ' ')); compileNode = $compileNode[0]; replaceWith($rootElement, jqLite($template[0]), compileNode); childTranscludeFn = compile($template, transcludeFn, terminalPriority); |
