From d3fa7a2e9e93c9dae13d852b28c878f7d6b7c420 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 29 Aug 2012 04:01:13 -0700 Subject: 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 --- src/jqLite.js | 2 +- src/ng/compile.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/jqLite.js b/src/jqLite.js index d0127076..1ba270b6 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -165,7 +165,7 @@ function JQLite(element) { var div = document.createElement('div'); // Read about the NoScope elements here: // http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx - div.innerHTML = '