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

HTML::Parser: report implicit events

Thread Next
From:
Bjoern Hoehrmann
Date:
April 7, 2001 08:08
Subject:
HTML::Parser: report implicit events
Message ID:
ncauctskcatgnvoeoph5t6okigl886mphn@4ax.com
Hi,

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">
  <title></title>
  <p>some text<img alt='' src=''> more text<h1>heading</h1>

should report (omitting text and possibly default events)

  declaration
  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 ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981028 ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote [!]e
            -- listen, learn, contribute -- David J. Marcus             

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About