Class BeautifulStoneSoup
In: lib/rubyful_soup.rb
Parent: HTML::SGMLParser

This class contains the basic parser and fetch code. It defines a parser that knows nothing about tag behavior except for the following:

You can‘t close a tag without closing all the tags it encloses. That is, "<foo><bar></foo>" actually means "<foo><bar></bar></foo>".

[Another possible explanation is "<foo><bar /></foo>", but since

 this class defines no self_closing_tags, it will never use that
 explanation.]

This class is useful for parsing XML or made-up markup languages, or when BeautifulSoup makes an assumption counter to what you were expecting."""

Methods

Included Modules

TagModule

Attributes

hidden  [RW] 

Public Class methods

Args: :initial_text_is_everything, :avoid_parser_problems, :parse_only_these

Protected Class methods

Turns a list of maps, lists, or scalars into a single map. Used to build the SELF_CLOSING_TAGS and NESTABLE_TAGS maps out of lists and partial maps.

Public Instance methods

Called when we‘re done collecting some text, declarations, etc.

Propagate comments right through.

StreamListener implementation

[Validate]