diff --git a/sizzle.js b/sizzle.js index b175e102..e1e437f6 100644 --- a/sizzle.js +++ b/sizzle.js @@ -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;