Sha256: 64c6c9a18320ed44fee01bec9c6c94669afa54c4001d24fd5c335a7aec7eeff7
Contents?: true
Size: 1.08 KB
Versions: 11
Compression:
Stored size: 1.08 KB
Contents
$debug("Defining DocumentFragment"); /* * DocumentFragment - DOM Level 2 */ /** * @class DOMDocumentFragment - DocumentFragment is a "lightweight" or "minimal" Document object. * @extends DOMNode * @author Jon van Noort (jon@webarcana.com.au) and David Joham (djoham@yahoo.com) * @param ownerDocument : DOMDocument - The Document object associated with this node. */ var DOMDocumentFragment = function(ownerDocument) { this.DOMNode = DOMNode; this.DOMNode(ownerDocument); this.nodeName = "#document-fragment"; }; DOMDocumentFragment.prototype = new DOMNode; __extend__(DOMDocumentFragment.prototype,{ get nodeType(){ return DOMNode.DOCUMENT_FRAGMENT_NODE; }, get xml(){ var xml = "", count = this.childNodes.length; // create string concatenating the serialized ChildNodes for (var i = 0; i < count; i++) { xml += this.childNodes.item(i).xml; } return xml; }, toString : function(){ return "DocumentFragment #"+this._id; } }); // $w.DocumentFragment = DOMDocumentFragment;
Version data entries
11 entries across 11 versions & 2 rubygems