hi, which version of xhtml (or html) do you use with rails? (1.0/1.1,
strict, transitional, frame)
Hi, you can use XHTML 1.0/1.1 or HTML 4.01. It really depends on what
browsers you’ll support and it’s different for everyone.
Good luck,
-Conrad
Nick,
The use of rails doesn’t effect your doctypes.
See this article for a clear explanation on the difference between
strict vs. transitional doctypes and their proper uses:
Best,
BJ Clark
Conrad T. wrote:
Hi, you can use XHTML 1.0/1.1 or HTML 4.01. It really depends on what
browsers you’ll support and it’s different for everyone.Good luck,
-Conrad
It’s a good question, i want to support many browsers as possible
so xhtml 1.1 it’s gone because IE doesn’t support it
Now is between xhtml 1.0 (served ad html…but in this case, which are
the benefits to use xhtml?) or html 4.01
@BJ Clark: thanks
Isak H. wrote:
On 1/1/07, nick [email protected] wrote:
Now is between xhtml 1.0 (served ad html…but in this case, which are
the benefits to use xhtml?)Use a before_filter in your application controller to set the headers
correctly.
Something like:def set_encoding
if request.env[“HTTP_ACCEPT”] &&
request.env[“HTTP_ACCEPT”].index(‘application/xhtml+xml’)
headers[“Content-Type”] = “application/xhtml+xml; charset=utf-8”
else
headers[“Content-Type”] = “text/html; charset=utf-8”
end
end
thanks
I’ve also found this:
http://www.7nights.com/asterisk/test/test_trans.htm
http://www.7nights.com/asterisk/test/test_strict.htm
with IE is ok, but wit firefox there is a little problem, so i don’t
know if use strict instead of transitional
On 1/1/07, nick [email protected] wrote:
Now is between xhtml 1.0 (served ad html…but in this case, which are
the benefits to use xhtml?)
Use a before_filter in your application controller to set the headers
correctly.
Something like:
def set_encoding
if request.env[“HTTP_ACCEPT”] &&
request.env[“HTTP_ACCEPT”].index(‘application/xhtml+xml’)
headers[“Content-Type”] = “application/xhtml+xml; charset=utf-8”
else
headers[“Content-Type”] = “text/html; charset=utf-8”
end
end