Class: HTML5::TreeBuilders::REXML::DocumentFragment

Inherits:
Element show all
Defined in:
lib/html5/treebuilders/rexml.rb

Instance Attribute Summary

Attributes inherited from Node

#rxobj

Attributes inherited from Base::Node

#_flags, #childNodes, #parent

Instance Method Summary collapse

Methods inherited from Element

#attributes=, #cloneNode, rxclass

Methods inherited from Node

#appendChild, #hasContent, #insertBefore, #insertText, #removeChild

Methods inherited from Base::Node

#appendChild, #cloneNode, #hasContent, #insertBefore, #insertText, #removeChild, #reparentChildren

Constructor Details

#initializeDocumentFragment

Returns a new instance of DocumentFragment.



145
146
147
# File 'lib/html5/treebuilders/rexml.rb', line 145

def initialize
  super nil
end

Instance Method Details

#printTree(indent = 0) ⇒ Object



149
150
151
152
153
154
155
# File 'lib/html5/treebuilders/rexml.rb', line 149

def printTree indent=0
  tree = ""
  for child in childNodes
    tree += child.printTree(indent+2)
  end
  return tree
end