Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: incrediBILL
I'd like to overcome this by giving an extra instruction to Firefox so that I can render SVG and MathML in a file with HTML tag.
Can you tell me what that instruction would have to be?
(I generate the pages with Ruby on Rails, which generates HTML files. If you can tell me how to change Ruby on Rails to generate XHTML tags, that would work just as well for me.)
[ I find the same with IE. ]
If the pages are dynamic, then your scripting language will surely have a way of setting the HTTP header as
, if not then you can set up Apache to send (for example) all pages ending in .xhtml with the appropriate MIME type.
Bear in mind that IE6/7 does not support
at all, although there is a way to make it support
The objective is to get Firefox to treat a file with html tag the way it would treat the same file if it had an xhtml tag. Say, "myfile.html" versus "myfile.xhtml" The files are on my desktop.
header('Content-Type: application/xhtml+xml; charset=UTF-8');
echo'<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>'
echo'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><meta http-equiv=content-type content="text/html;charset=UTF-8">'
Blah blah blah