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