Re: HTML::Parser & tag</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=libwww@perl.org&amp;q=from:%22Alex+Kapranoff%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Alex Kapranoff</span></span></a></span> <span class="date"><a href="/search?l=libwww@perl.org&amp;q=date:20041111" rel="nofollow">Thu, 11 Nov 2004 01:01:06 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>* Gisle Aas &lt;[EMAIL PROTECTED]&gt; [November 10 2004, 21:25]: &gt; then closed the connection. Since there was no way for the server to &gt; indicate any other Content-Type than text/html the &lt;plaintext&gt; tag was &gt; introduced so that text files could be served by just prefixing the &gt; file content with this tag. &gt; &gt; This was before the &lt;img&gt; tag was invented so luckily we don't have a &gt; similar unclosed &lt;gif&gt; tag :)</pre><pre> Thank you very much for this enlightment! It explains everything! BTW, by that time I had even seen computers once or twice from far away :) &gt; my current browsers both Konqueror and MSIE support this. Firefox &gt; support it in the same way as &lt;xmp&gt;, i.e. it allow you to escape out &gt; of it with &lt;/plaintext&gt;. This Firefox behaviour is likely to have confused me. Look, what if I've got such a html: `&lt;plaintext&gt;&lt;/plaintext&gt;&lt;script&gt;nasties;&lt;/script&gt;'? HTML::Parser stops parsing after `&lt;plaintext&gt;' so that no interesting event is triggered on `&lt;script&gt;' tag and my sanitizer has no chance to rip out the nasties. Firefox (my 1st browser to test) happily resumes parsing after `&lt;/plaintext&gt;' and that's the problem. Maybe it is the gecko people who are at fault. &gt; &gt; It results in weird effects for me as I write a HTML sanitizer for &gt; &gt; WebMail. &gt; Howcome? Do you have a need to suppress this behaviour in HTML::Parser? Yes, I'd like to have an option to resume parsing after `&lt;/plaintext&gt;' just as firefox does. As I understand the original intentions now I'll try to produce a patch. -- Alex Kapranoff, #!/usr/bin/perl -w $SIG{__WARN__}=sub{print substr(&quot;@_&quot;,-43+ord$_,1)for '6.823O1US90:350:739OJ;0:*'=~m}.}g},$}='PJlshrk';reset$}+43; </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg05354.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#05355">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#05355">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg05362.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg05340.html">HTML::Parser &amp; &lt;plaintext&gt; tag</a></span> <span class="sender italic">Alex Kapranoff</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05354.html">Re: HTML::Parser &amp; &lt;plaintext&gt; tag</a></span> <span class="sender italic">Gisle Aas</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05362.html">Re: HTML::Parser &amp; &lt;plaintext&gt; tag</a></span> <span class="sender italic">Alex Kapranoff</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05362.html">Re: HTML::Parser &amp; &lt;plaintext&gt; tag</a></span> <span class="sender italic">Alex Kapranoff</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05356.html">Re: HTML::Parser &amp; &lt;plaintext&gt; t...</a></span> <span class="sender italic">Gisle Aas</span></li> </ul> </ul> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: HTML::Parser &amp; &lt;plaintext&gt; tag"> <input type="hidden" name="msgid" value="20041111081114.GA21013@capella.park.rambler.ru"> <input type="hidden" name="relpath" value="libwww@perl.org/msg05355.html"> <input type="submit" value=" Alex Kapranoff "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="libwww@perl.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search libwww"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/libwww@perl.org/">libwww - all messages</a></li> <li class="icons-about"><a href="/libwww@perl.org/info.html">libwww - about the list</a></li> <li class="icons-expand"><a href="/search?l=libwww@perl.org&amp;q=subject:%22Re%5C%3A+HTML%5C%3A%5C%3AParser+%5C%26+%3Cplaintext%3E+tag%22&amp;o=newest&amp;f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg05354.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg05362.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">20041111081114.GA21013@capella.park.rambler.ru</li> </ul> </div> </body> </html>