Sha256: 38494b7ad8fb5ed943c47cbc719588e66d8957383ea53ff5491a7cb63c673404

Contents?: true

Size: 1.78 KB

Versions: 28

Compression:

Stored size: 1.78 KB

Contents

/*
	cssQuery, version 2.0.2 (2005-08-19)
	Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
	License: http://creativecommons.org/licenses/LGPL/2.1/
*/

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 Explorer
isMSIE = 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

Version data entries

28 entries across 28 versions & 5 rubygems

Version Path
selenium-webdriver-0.0.17 common/src/js/core/lib/cssQuery/src/cssQuery-standard.js
selenium-webdriver-0.0.16 common/src/js/core/lib/cssQuery/src/cssQuery-standard.js
selenium-webdriver-0.0.15 common/src/js/core/lib/cssQuery/src/cssQuery-standard.js
selenium-webdriver-0.0.14 common/src/js/core/lib/cssQuery/src/cssQuery-standard.js
selenium-webdriver-0.0.13 common/src/js/core/lib/cssQuery/src/cssQuery-standard.js
selenium-webdriver-0.0.12 common/src/js/core/lib/cssQuery/src/cssQuery-standard.js
selenium-webdriver-0.0.11 common/src/js/core/lib/cssQuery/src/cssQuery-standard.js
selenium-webdriver-0.0.10 common/src/js/core/lib/cssQuery/src/cssQuery-standard.js