Permalink
Browse files

Merge pull request #84 from rockhymas/documentFragment

Add documentFragment to acceptable nodeTypes. Fixes jQuery bug #10864.
  • Loading branch information...
2 parents 423f35a + b3046a2 commit fe2f618106bb76857b229113d6d11653707d0b22 timmywil committed Jan 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 sizzle.js
View
@@ -338,7 +338,7 @@ var getText = Sizzle.getText = function( elem ) {
ret = "";
if ( nodeType ) {
- if ( nodeType === 1 || nodeType === 9 ) {
+ if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
// Use textContent || innerText for elements
if ( typeof elem.textContent === 'string' ) {
return elem.textContent;

0 comments on commit fe2f618

Please sign in to comment.