develooper Front page | perl.libwww | Postings from April 2001

HTML::Parser: report implicit events

Thread Next
Bjoern Hoehrmann
April 7, 2001 08:08
HTML::Parser: report implicit events
Message ID:

I wonder, why HTML::Parser does not report implicit events. A conforming
parser should report them in order to insure, that a correct parse tree
could be build. An example:

  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
  <p>some text<img alt='' src=''> more text<h1>heading</h1>

should report (omitting text and possibly default events)

  start (html)
    start (head)
      start (title)
      end (title)
    end (head)
    start (body)
      start (p)
        start (img)
        end (img)
      end (p)
      start (h1)
      end (h1)
    end (body)
  end (html)

I request an option to get those events.
Björn Höhrmann ^ ^
am Badedeich 7 ° Telefon: +49(0)4667/981028 °
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # [!]e
            -- listen, learn, contribute -- David J. Marcus             

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About