| Class | HTML5::TreeBuilders::REXML::Document |
| In: |
lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb
|
| Parent: | Node |
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 98
98: def initialize
99: super nil
100: end
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 94
94: def self.rxclass
95: ::REXML::Document
96: end
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
110: def printTree indent=0
111: tree = "#document"
112: for child in childNodes
113: tree += child.printTree(indent + 2)
114: end
115: return tree
116: end