Bjoern Hoehrmann <[EMAIL PROTECTED]> writes:

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

This involves moving all the HTML::TreeBuilder logic to HTML::Parser.
I don't think I want to try to do that.  It might be possible to move
the HTML::TreeBuilder logic that insert implicit events into a
separate subclass so that it can be used without the tree generation
stuff, but then again the logic itself might need the tree to decide
what implicit tags to insert.

--Gisle

Reply via email to