Re: Subclassing HTML::Parser to support $p->include()
Andy Armstrong <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
On 24 Feb 2006, at 18:50, Gisle Aas wrote: > Seems so to me. You can depend on any complete tag to be reported > before $p->parse(), passing in the corresponding text, returns. This > is implicitly documented by the description of $p->eof that says that > its effect is to flush any remaining _text_. Ah, that's great, thanks. > One caveat is that your tag will not be recognized inside tags that > force literal text content. For instance: > > <textarea> > <include /> > </textarea> > > Here <include /> will be parsed as text whatever you do. I hadn't thought of that - but I think I can live with it, thanks. -- Andy Armstrong, hexten.net