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."""