Class | HTML5::TreeBuilders::Hpricot::TreeBuilder |
In: |
lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb
|
Parent: | Base::TreeBuilder |
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 201 201: def initialize 202: @documentClass = Document 203: @doctypeClass = DocumentType 204: @elementClass = Element 205: @commentClass = CommentNode 206: @fragmentClass = DocumentFragment 207: end
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 218 218: def get_document 219: @document.hpricot 220: end
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 222 222: def get_fragment 223: @document = super 224: return @document.hpricot.children 225: end
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 209 209: def insertDoctype(name, public_id, system_id) 210: doctype = @doctypeClass.new(name, public_id, system_id) 211: @document.appendChild(doctype) 212: end