Sha256: ed0639c29bc5b134323d59e063e9372fcb415e26aa385332e69d938379eeb773

Contents?: true

Size: 1015 Bytes

Versions: 11

Compression:

Stored size: 1015 Bytes

Contents

$debug("Defining CDATASection");
/*
* CDATASection - DOM Level 2
*/
/**
 * @class  DOMCDATASection - CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup.
 *   The only delimiter that is recognized in a CDATA section is the "\]\]\>" string that ends the CDATA section
 * @extends DOMCharacterData
 * @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 DOMCDATASection = function(ownerDocument) {
  this.DOMText  = DOMText;
  this.DOMText(ownerDocument);

  this.nodeName  = "#cdata-section";
};
DOMCDATASection.prototype = new DOMText;
__extend__(DOMCDATASection.prototype,{
    get nodeType(){
        return DOMNode.CDATA_SECTION_NODE;
    },
    get xml(){
        return "<![CDATA[" + this.nodeValue + "]]>";
    },
    toString : function(){
        return "CDATA #"+this._id;
    }
});

// $w.CDATASection = DOMCDATASection;

Version data entries

11 entries across 11 versions & 2 rubygems

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