add:   selectById = function($results, $from, id) { var $match, i; for(i = 0; i < $from.length; i++) { var $match = _getChildById($from[i], id); if($match) $results.push($match); } return $results; }  function _getChildById($from, $id) { var $match = document.getElementById($id); if($from == document) { return $match; } var $elt = $match; while($elt) { if($elt == $from) { return $match; } $elt = $elt.parentNode; } return null; }  
context: cssQuery.addModule("css-standard", function() { // override IE optimisation// cssQuery was originally written as the CSS engine for IE7. It is//  optimised (in terms of size not speed) for IE so this module is//  provided separately to provide cross-browser support.// -----------------------------------------------------------------------// browser compatibility// -----------------------------------------------------------------------// sniff for Win32 ExplorerisMSIE = eval("false;/*@cc_on@if(@\x5fwin32)isMSIE=true@end@*/");if (!isMSIE) {	getElementsByTagName = function($element, $tagName, $namespace) {		return $namespace ? $element.getElementsByTagNameNS("*", $tagName) :			$element.getElementsByTagName($tagName);	};	compareNamespace = function($element, $namespace) {		return !$namespace || ($namespace == "*") || ($element.prefix == $namespace);	};	isXML = document.contentType ? function($element) {		return /xml/i.test(getDocument($element).contentType);	} : function($element) {		return getDocument($element).documentElement.tagName != "HTML";	};	getTextContent = function($element) {		// mozilla || opera || other		return $element.textContent || $element.innerText || _getTextContent($element);	};	function _getTextContent($element) {		var $textContent = "", $node, i;		for (i = 0; ($node = $element.childNodes[i]); i++) {			switch ($node.nodeType) {				case 11: // document fragment				case 1: $textContent += _getTextContent($node); break;				case 3: $textContent += $node.nodeValue; break;			}		}		return $textContent;	};}}); // addModule
meta: 5054	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5054/9ab918943a37912fd0adc4e3db6b92a97ff463d5/cssQuery-standard.js/buggy/share/web/static/js/cssquery/cssQuery-standard.js