diff --git a/src/ng/compile.js b/src/ng/compile.js index 8d5f8520c2b1..35dd7d1bef31 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -1621,7 +1621,11 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { compile.$$createComment = function(directiveName, comment) { var content = ''; if (debugInfoEnabled) { - content = ' ' + (directiveName || '') + ': ' + (comment || '') + ' '; + content = ' '; + content += (directiveName || ''); + content += ':'; + content += comment ? ' ' + comment : ''; + content += ' '; } return window.document.createComment(content); }; diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index f0437df6691d..d424fb42f580 100755 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -8438,7 +8438,7 @@ describe('$compile', function() { expect(function() { $compile('
'); }).toThrowMinErr('$compile', 'multidir', 'Multiple directives [first, second] asking for transclusion on: ' + - ''); + ''); }); });