Lines Matching refs:node
313 getInnerText: function ( node ) { argument
319 if ( !node ) {
322 var hasInputs = ( typeof node.getElementsByTagName === "function" ) &&
323 node.getElementsByTagName( "input" ).length;
324 if ( node.getAttribute( "sorttable_customkey" ) !== null ) {
325 return node.getAttribute( "sorttable_customkey" );
326 } else if ( typeof node.textContent !== "undefined" && !hasInputs ) {
327 return node.textContent.replace( /^\s+|\s+$/g, '' );
328 } else if ( typeof node.innerText !== "undefined" && !hasInputs ) {
329 return node.innerText.replace( /^\s+|\s+$/g, '' );
330 } else if ( typeof node.text !== "undefined" && !hasInputs ) {
331 return node.text.replace( /^\s+|\s+$/g, '' );
333 switch ( node.nodeType ) {
335 … return ( node.nodeName.toLowerCase() === "input" ) ? node.value.replace( /^\s+|\s+$/g, '' ) : '';
337 return node.nodeValue.replace( /^\s+|\s+$/g, '' );
341 for( var i = 0; i < node.childNodes.length; i++ ) {
342 innerText += sorttable.getInnerText( node.childNodes[i] );