Re: [Lynx-dev] bug: lynx parses from SVG inside <body> as document <title> even outside of HTML <head></span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=lynx-dev@nongnu.org&q=from:%22David+Woolley%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">David Woolley</span></span></a></span> <span class="date"><a href="/search?l=lynx-dev@nongnu.org&q=date:20150517" rel="nofollow">Sun, 17 May 2015 04:33:36 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre style="margin: 0em;"> On 16/05/15 23:02, Thorsten Glaser wrote: </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> Subject says all, I know, but Subject is not the place for it, so:</pre><pre> Assume a document like this: <html> <head> <title>foo</title> </head> <body> <div> <svg> <title>bar</title> </pre></blockquote><pre style="margin: 0em;"> </pre><tt>Isn't it more correct to say that processes title when, invalidly </tt><tt>present outside a head section. </tt><pre style="margin: 0em;"> </pre><tt>The <svg> is a red herring, and is, I think invalid, as there is no </tt><tt>namespace change specified, and the document is not XML. </tt><pre style="margin: 0em;"> </pre><tt>It was a design aim of the original HTML that tags around unknown </tt><tt>elements could be ignored with the result being to fail degraded, so </tt><tt>this should be rendered the same as if there were no <svg> at all. </tt><tt>Where it is going wrong is that the title element tags should also be </tt><tt>ignored, so "bar" should render in the contents, not as the page title. </tt><pre style="margin: 0em;"> _______________________________________________ Lynx-dev mailing list Lynx-dev@nongnu.org <a rel="nofollow" href="https://lists.nongnu.org/mailman/listinfo/lynx-dev">https://lists.nongnu.org/mailman/listinfo/lynx-dev</a> </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg05821.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#05824">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#05824">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg05825.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="msg05821.html">[Lynx-dev] bug: lynx parses <title> from SVG inside ...</a></span> <span class="sender italic">Thorsten Glaser</span></li> <li><ul> <li class="icons-email tSliceCur"><span class="subject">Re: [Lynx-dev] bug: lynx parses <title> from SV...</span> <span class="sender italic">David Woolley</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05825.html">Re: [Lynx-dev] bug: lynx parses <title> fro...</a></span> <span class="sender italic">Thorsten Glaser</span></li> </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: [Lynx-dev] bug: lynx parses <title> from SVG inside <body> as document <title> even outside of HTML <head>"> <input type="hidden" name="msgid" value="55587C6B.9030407@david-woolley.me.uk"> <input type="hidden" name="relpath" value="lynx-dev@nongnu.org/msg05824.html"> <input type="submit" value=" David Woolley "> </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="lynx-dev@nongnu.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search lynx-dev"> <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="/lynx-dev@nongnu.org/">lynx-dev - all messages</a></li> <li class="icons-about"><a href="/lynx-dev@nongnu.org/info.html">lynx-dev - about the list</a></li> <li class="icons-expand"><a href="/search?l=lynx-dev@nongnu.org&q=subject:%22Re%5C%3A+%5C%5BLynx%5C-dev%5C%5D+bug%5C%3A+lynx+parses+%3Ctitle%3E+from+SVG+inside+%3Cbody%3E+as+document+%3Ctitle%3E+even+outside+of+HTML+%3Chead%3E%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg05821.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg05825.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">55587C6B.9030407@david-woolley.me.uk</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9dc44b35bd172e5c',t:'MTc3MzUwMTk1NQ=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>