Sha256: 1a069e55c5be7bf7cad64bc26f3936f5e7b51a833ccb7da2a25d1f55a59775d3

Contents?: true

Size: 717 Bytes

Versions: 11

Compression:

Stored size: 717 Bytes

Contents

/*
*	document.js
*
*	DOM Level 2 /DOM level 3 (partial)
*	
*	This file adds the document object to the window and allows you
*	you to set the window.document using an html string or dom object.
*
*/

$debug("Initializing document.implementation");
var $implementation =  new DOMImplementation();
// $implementation.namespaceAware = false;
$implementation.errorChecking = false;

// read only reference to the Document object
var $document;
{    // a temporary scope, nothing more
  var referrer = "";
  try {
    referrer = $openingWindow.location.href;
  } catch (e){ /* or not */ }
  $document = new HTMLDocument($implementation, $w, referrer);
}

$w.__defineGetter__("document", function(){
	return $document;
});

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
envjs19-0.3.8.20101029121421 src/window/document.js
envjs-0.3.8 src/window/document.js
envjs-0.3.7 src/window/document.js
envjs-0.3.6 src/window/document.js
envjs-0.3.5 src/window/document.js
envjs-0.3.4 src/window/document.js
envjs-0.3.3 src/window/document.js
envjs-0.3.2 src/window/document.js
envjs-0.3.1 src/window/document.js
envjs-0.3.0 src/window/document.js
envjs-0.2.0 src/window/document.js