Recent Posts by Bob Barry
|
Jan 25, 2008
Bob Barry
1 post
|
Topic: Rails Recipes / Xhtml functionality in Html file 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’d like to make templates that include Xhtml elements having MathML and SVG. Innocently, I thought I could get the browser to think Xhtml by finding the right DOCTYPE and META lines within a file having tag html. To be clear: A file opened by Firefox containing an <svg> element will render the circle on the browser page PROVIDED the file’s tag is Xhtml or Xml. Say, ‘circle demo.xhtml’ but if the file tag is changed ‘circle demo.html’ then Firefox will not render the circle. |
1 post
