class XML::DOM::DocumentFragment

Class XML::DOM::DocumentFragment

superclass

Node

Class XML::DOM::DocumentFragment

superclass

Node

Public Class Methods

new(*children) click to toggle source

Class Methods

Calls superclass method XML::DOM::Node::new
# File lib/xml/dom/core.rb, line 1446
def initialize(*children)
  super(*children)
end

Public Instance Methods

_checkNode(node) click to toggle source
# File lib/xml/dom/core.rb, line 1486
def _checkNode(node)
  unless node.nodeType == ELEMENT_NODE ||
      node.nodeType == PROCESSING_INSTRUCTION_NODE ||
      node.nodeType == COMMENT_NODE ||
      node.nodeType == TEXT_NODE ||
      node.nodeType == CDATA_SECTION_NODE ||
      node.nodeType == ENTITY_REFERENCE_NODE
    raise DOMException.new(DOMException::HIERARCHY_REQUEST_ERR)
  end
end
nodeName() click to toggle source
# File lib/xml/dom/core.rb, line 1470
def nodeName
  "#document-fragment"
end
nodeType() click to toggle source

Methods

# File lib/xml/dom/core.rb, line 1459
def nodeType
  DOCUMENT_FRAGMENT_NODE
end
parentNode=(p) click to toggle source
# File lib/xml/dom/core.rb, line 1480
def parentNode=(p)
  @children.each do |child|
    child.parentNode = p
  end if @children
end