dojox/data/dom.js

  • Provides:

    • dojox.data.dom
  • dojox.data.dom.createDocument

    • type
      Function
    • parameters:
      • str: (typeof string)
        Optional text to create the document from.  If not provided, an empty XML document will be created.
        If str is empty string "", then a new empty document will be created.
      • mimetype: (typeof string)
        Optional mimetype of the text.  Typically, this is text/xml.  Will be defaulted to text/xml if not provided.
    • source: [view]
       dojo.deprecated("dojox.data.dom.createDocument()", "Use dojox.xml.parser.parse() instead.", "2.0");
       try{
        return dojox.xml.parser.parse(str,mimetype); //DOMDocument.
       }catch(e){
        /*Squeltch errors like the old parser did.*/
        return null;
       }
    • summary
      cross-browser implementation of creating an XML document object.
    • returns
      DOMDocument.
  • dojox.data.dom.textContent

    • type
      Function
    • parameters:
      • node: (typeof Node)
        The node to get the text off of or set the text on.
      • text: (typeof string)
        Optional argument of the text to apply to the node.
    • source: [view]
       dojo.deprecated("dojox.data.dom.textContent()", "Use dojox.xml.parser.textContent() instead.", "2.0");
       if(arguments.length> 1){
        return dojox.xml.parser.textContent(node, text); //string
       }else{
        return dojox.xml.parser.textContent(node); //string
       }
    • summary
      Implementation of the DOM Level 3 attribute; scan node for text
    • description
      Implementation of the DOM Level 3 attribute; scan node for text
      This function can also update the text of a node by replacing all child
      content of the node.
    • returns
      string
  • dojox.data.dom.replaceChildren

    • type
      Function
    • parameters:
      • node: (typeof Element)
        The node to modify the children on
      • newChildren: (typeof Node || array)
        The children to add to the node.  It can either be a single Node or an
        array of Nodes.
    • source: [view]
       dojo.deprecated("dojox.data.dom.replaceChildren()", "Use dojox.xml.parser.replaceChildren() instead.", "2.0");
       dojox.xml.parser.replaceChildren(node, newChildren);
    • summary
      Removes all children of node and appends newChild. All the existing
      children will be destroyed.
    • description
      Removes all children of node and appends newChild. All the existing
      children will be destroyed.
  • dojox.data.dom.removeChildren

    • type
      Function
    • parameters:
      • node: (typeof Element)
        The node to remove all the children from.
    • source: [view]
       dojo.deprecated("dojox.data.dom.removeChildren()", "Use dojox.xml.parser.removeChildren() instead.", "2.0");
       return dojox.xml.parser.removeChildren(node); //int
    • summary
      removes all children from node and returns the count of children removed.
      The children nodes are not destroyed. Be sure to call dojo._destroyElement on them
      after they are not used anymore.
    • returns
      int
  • dojox.data.dom.innerXML

    • type
      Function
    • parameters:
      • node: (typeof Node)
        The node from which to generate the XML text representation.
    • source: [view]
       dojo.deprecated("dojox.data.dom.innerXML()", "Use dojox.xml.parser.innerXML() instead.", "2.0");
       return dojox.xml.parser.innerXML(node); //string||null
    • summary
      Implementation of MS's innerXML function.
    • returns
      string||null
  • dojox.data.dom

    • type
      Object
    • summary
  • dojox.data

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary