Re: [whatwg] HTML as a text format: Should be optional?</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=whatwg@lists.whatwg.org&q=from:%22Kristof+Zelechovski%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Kristof Zelechovski</span></span></a></span> <span class="date"><a href="/search?l=whatwg@lists.whatwg.org&q=date:20090418" rel="nofollow">Sat, 18 Apr 2009 06:28:04 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>The DOCTYPE is required and it should be. That way, the text introduces itself and instructs the reader about the expected renderer (in absence of external metadata). I have seen several products (mail readers and proxies, on-line help systems, fora etc.) trying to interpret every text as HTML, even if that was not what the author intended. It is safer to interpret every text as plain, unless it starts with a DOCTYPE prologue. This is especially important with HTML fragments. Chris</pre><pre> </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg14438.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd8.html#14451">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail9.html#14451">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg15241.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="msg14438.html">[whatwg] HTML as a text format: Should <title>...</a></span> <span class="sender italic">Øistein E . Andersen</span></li> <li><ul> <li class="icons-email tSliceCur"><span class="subject">Re: [whatwg] HTML as a text format: Should <...</span> <span class="sender italic">Kristof Zelechovski</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg15241.html">Re: [whatwg] HTML as a text format: Should ...</a></span> <span class="sender italic">Ian Hickson</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg15246.html">Re: [whatwg] HTML as a text format: Sho...</a></span> <span class="sender italic">Michael Enright</span></li> </ul></li> </ul></li> <li class="icons-email"><span class="subject"><a href="msg14441.html">Re: [whatwg] HTML as a text format: Should <...</a></span> <span class="sender italic">Randy Drielinger</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg14442.html">Re: [whatwg] HTML as a text format: Should ...</a></span> <span class="sender italic">Michael Enright</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg14449.html">Re: [whatwg] HTML as a text format: Sho...</a></span> <span class="sender italic">Øistein E . Andersen</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg14450.html">Re: [whatwg] HTML as a text format:...</a></span> <span class="sender italic">Markus Ernst</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: [whatwg] HTML as a text format: Should <title> be optional?"> <input type="hidden" name="msgid" value="52117375368B4D95BA8A1F23DB0335C7@POCZTOWIEC"> <input type="hidden" name="relpath" value="whatwg@lists.whatwg.org/msg14451.html"> <input type="submit" value=" Kristof Zelechovski "> </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="whatwg@lists.whatwg.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search whatwg"> <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="/whatwg@lists.whatwg.org/">whatwg - all messages</a></li> <li class="icons-about"><a href="/whatwg@lists.whatwg.org/info.html">whatwg - about the list</a></li> <li class="icons-expand"><a href="/search?l=whatwg@lists.whatwg.org&q=subject:%22Re%5C%3A+%5C%5Bwhatwg%5C%5D+HTML+as+a+text+format%5C%3A+Should+%3Ctitle%3E+be+optional%5C%3F%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg14438.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg15241.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">52117375368B4D95BA8A1F23DB0335C7@POCZTOWIEC</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:'9d0b0b57bdedd96e',t:'MTc3MTU1OTQ3Mw=='};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>