Class HTMLTree::Parser
In: lib/html/tree.rb
lib/html/tree.rb
Parent: HTML::StackingParser

Methods

html   html   new   new   reset   reset   tree   tree  

Public Class methods

verbose:if true, will warn to $stderr on unknown

tags/entities/characters, as well as missing end tags and extra end tags.

strip_white:if true, remove all non-essential whitespace. Note

that there are browser bugs that may cause this to change the appearance of HTML (even though it shouldn‘t by the standard).

verbose:if true, will warn to $stderr on unknown

tags/entities/characters, as well as missing end tags and extra end tags.

strip_white:if true, remove all non-essential whitespace. Note

that there are browser bugs that may cause this to change the appearance of HTML (even though it shouldn‘t by the standard).

Public Instance methods

Return the <html> node, if any.

Return the <html> node, if any.

Reset this parser so that it can parse a new document.

Reset this parser so that it can parse a new document.

Return the tree that was built. This will be an HTMLTree::Element that represents the whole document. The <html> node is a child of this.

Return the tree that was built. This will be an HTMLTree::Element that represents the whole document. The <html> node is a child of this.

[Validate]