libwww-perl / HTML-Parser

The HTML-Parser distribution is is a collection of modules that parse and extract information from HTML documents.
Other
6 stars 13 forks source link

<title> tag triggers end event #22

Open gaetanboulard opened 3 years ago

gaetanboulard commented 3 years ago

The sentence "Here is a tag" triggers an <code>end</code> event at the end of the sentence, despite there being no closing HTML tag.</p> <p>As far as I can tell, this occurs when a block of text ends with a <code><title></code> tag followed by text. I haven't found any tag other than <code><title></code> that causes this issue.</p> <p>tested with HTML::Parser 3.71 & 3.76</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>