<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Xhtml functionality in Html file' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/8/topics/238</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Xhtml functionality in Html file posted by Bob Barry @ Fri, 25 Jan 2008 21:04:58 -0000</title>
      <description>&lt;p&gt;Firefox and Internet Explorer appear to look at the incoming file tag to decide whether to treat the file contents as Html or Xhtml. Using Rails, I&amp;#8217;d like to make templates that include Xhtml elements having MathML and &lt;span class="caps"&gt;SVG&lt;/span&gt;. Innocently, I thought I could get the browser to think Xhtml by finding the right &lt;span class="caps"&gt;DOCTYPE&lt;/span&gt; and &lt;span class="caps"&gt;META&lt;/span&gt; lines within a file having tag html. &lt;br /&gt;I still think that must be right, but I haven&amp;#8217;t figured out how to write the &lt;span class="caps"&gt;DOCTYPE&lt;/span&gt; and /or &lt;span class="caps"&gt;META&lt;/span&gt; lines. &lt;br /&gt;All ideas will be welcome.&lt;/p&gt;


	&lt;p&gt;To be clear: A file opened by Firefox containing an &amp;lt;svg&gt; element will render the circle on the browser page &lt;span class="caps"&gt;PROVIDED&lt;/span&gt; the file&amp;#8217;s tag is Xhtml or Xml. Say, &amp;#8216;circle demo.xhtml&amp;#8217;   but if the file tag is changed &amp;#8216;circle demo.html&amp;#8217; then Firefox will not render the circle.  &lt;br /&gt;Thanks.&lt;br /&gt;Bob Barry&lt;/p&gt;</description>
      <pubDate>Fri, 25 Jan 2008 21:04:58 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:8:238:2227</guid>
      <author>Bob Barry</author>
      <link>http://forums.pragprog.com/forums/8/topics/238</link>
    </item>
  </channel>
</rss>
