Browse files

Add document to acceptable nodeTypes. Fixes jQuery bug #10724. Test a…

…dded in jQuery manip.js
  • Loading branch information...
1 parent d4e5c22 commit 2e664828f3e0a17d70ef4bf69322e06da04eb406 @timmywil committed Nov 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 sizzle.js
View
2 sizzle.js
@@ -338,7 +338,7 @@ var getText = Sizzle.getText = function( elem ) {
ret = "";
if ( nodeType ) {
- if ( nodeType === 1 ) {
+ if ( nodeType === 1 || nodeType === 9 ) {
// Use textContent || innerText for elements
if ( typeof elem.textContent === 'string' ) {
return elem.textContent;

0 comments on commit 2e66482

Please sign in to comment.