Skip to content

Commit

Permalink
Merge pull request #84 from rockhymas/documentFragment
Browse files Browse the repository at this point in the history
Add documentFragment to acceptable nodeTypes. Fixes jQuery bug #10864.
  • Loading branch information
timmywil committed Jan 20, 2012
2 parents 423f35a + b3046a2 commit fe2f618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sizzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe2f618

Please sign in to comment.