Class HTML5::TreeBuilders::Hpricot::TreeBuilder
In: lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb
Parent: Base::TreeBuilder

Methods

Public Class methods

[Source]

     # File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 202
202:         def initialize
203:           @documentClass = Document
204:           @doctypeClass  = DocumentType
205:           @elementClass  = Element
206:           @commentClass  = CommentNode
207:           @fragmentClass = DocumentFragment
208:         end

Public Instance methods

[Source]

     # File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 219
219:         def get_document
220:           @document.hpricot
221:         end

[Source]

     # File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 223
223:         def get_fragment
224:           @document = super
225:           return @document.hpricot.children
226:         end

[Source]

     # File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 210
210:         def insertDoctype(name, public_id, system_id)
211:           doctype = @doctypeClass.new(name, public_id, system_id)
212:           @document.appendChild(doctype)
213:         end

[Source]

     # File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 215
215:         def testSerializer(node)
216:           node.printTree
217:         end

[Validate]