-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edge case with trailing text unreported #23
Comments
The docs say:
I think that seems reasonable in your case, where the fragment is not wholly enclosed by tags. I had to go back and check one of my projects and I see that I'm calling
|
I think the doc makes it clear for sure, but expectations might be different. If one calls |
Maybe some digging through the original commits would make this clear? I wrote none of this code, so I actually just don't know. |
With HTML::Parser v3.76.
Consider the following chunk of data:
Creating an object, such as:
And this would yield:
However, ' really?' is not being reported.
One has to explicitly call
$p->eof
to have the trailing text reported.If this is an intended feature, then it ought to be made clear in the documentation. However, I think one should not have to call
eof
to get that last trailing text.The text was updated successfully, but these errors were encountered: