aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCaitlin Potter2014-02-18 15:16:38 -0500
committerCaitlin Potter2014-02-18 18:43:59 -0500
commit05fbed5710b702c111c1425a9e241c40d13b0a54 (patch)
tree35b140ec5fb4cee2a5dfe069d535ea6311281117 /src
parent21dac2a3daae528471d5e767072b10e1491f2106 (diff)
downloadangular.js-05fbed5710b702c111c1425a9e241c40d13b0a54.tar.bz2
fix(jqLite): make jqLite('<iframe src="someurl">').contents() return iframe document, as in jQuery
This is a very tiny change to make behaviour consistent with jQuery. Closes #6320 Closes #6323
Diffstat (limited to 'src')
-rw-r--r--src/jqLite.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 664ba7b7..b820f5e7 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -793,7 +793,7 @@ forEach({
},
contents: function(element) {
- return element.childNodes || [];
+ return element.contentDocument || element.childNodes || [];
},
append: function(element, node) {