Class/Module Index [+]

Quicksearch

HTML5::TreeBuilders::REXML::Document

Public Class Methods

new() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 98
def initialize
  super nil
end
rxclass() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 94
def self.rxclass
  ::REXML::Document
end

Public Instance Methods

printTree(indent=0) click to toggle source

ryansking: not sure why this was here. removing it doesn't cause any tests to fail def appendChild node

if node.kind_of? Element and node.name == 'html'
  node.rxobj.add_namespace('http://www.w3.org/1999/xhtml')
end
super node

end

# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 110
def printTree indent=0
  tree = "#document"
  for child in childNodes
    tree += child.printTree(indent + 2)
  end
  return tree
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.