diff options
| author | Igor Minar | 2012-08-29 04:01:13 -0700 | 
|---|---|---|
| committer | Igor Minar | 2012-08-30 10:53:23 -0700 | 
| commit | d3fa7a2e9e93c9dae13d852b28c878f7d6b7c420 (patch) | |
| tree | 8bf524d70472e46e27986affd5c5ae2c2b4e63b9 /src/jqLite.js | |
| parent | 8693eac417ff1f8c21a8dedb45c290ee0b408da1 (diff) | |
| download | angular.js-d3fa7a2e9e93c9dae13d852b28c878f7d6b7c420.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/jqLite.js')
| -rw-r--r-- | src/jqLite.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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 = '<div> </div>' + element; // IE insanity to make NoScope elements work! +    div.innerHTML = '<div> </div>' + element; // IE insanity to make NoScope elements work!      div.removeChild(div.firstChild); // remove the superfluous div      JQLiteAddNodes(this, div.childNodes);      this.remove(); // detach the elements from the temporary DOM div. | 
