diff options
| author | Misko Hevery | 2011-02-07 15:15:14 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-02-16 00:48:22 -0500 |
| commit | e2154cbc0b9265bea04ce328879d4e9bf1c67c51 (patch) | |
| tree | fd49a2d08f54b72997872e190ba9300f80c14a15 /src/Angular.js | |
| parent | 0a5c00abf8664fdbdc5d16b13adb1989b4531cdf (diff) | |
| download | angular.js-e2154cbc0b9265bea04ce328879d4e9bf1c67c51.tar.bz2 | |
remove dom manipulation API from compiler
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Angular.js b/src/Angular.js index 9a1ab4a2..f9047d32 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -273,7 +273,10 @@ function jqLiteWrap(element) { if (element) { if (isString(element)) { var div = document.createElement('div'); - div.innerHTML = element; + // 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.removeChild(div.firstChild); // remove the superfluous div element = new JQLite(div.childNodes); } else if (!(element instanceof JQLite)) { element = new JQLite(element); |
