Parent

Class/Module Index [+]

Quicksearch

HTML5::TreeBuilders::Hpricot::TreeBuilder

Public Class Methods

new() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 201
def initialize
  @documentClass = Document
  @doctypeClass  = DocumentType
  @elementClass  = Element
  @commentClass  = CommentNode
  @fragmentClass = DocumentFragment
end

Public Instance Methods

get_document() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 218
def get_document
  @document.hpricot
end
get_fragment() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 222
def get_fragment
  @document = super
  return @document.hpricot.children
end
insertDoctype(name, public_id, system_id) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 209
def insertDoctype(name, public_id, system_id)
  doctype = @doctypeClass.new(name, public_id, system_id)
  @document.appendChild(doctype)
end
testSerializer(node) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 214
def testSerializer(node)
  node.printTree
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.