Posted by David Dorward on 01/13/06 21:25
Andy Dingley wrote:
> On Thu, 12 Jan 2006 09:29:25 -0600, saz <saz1958@nospammersexcite.com>
> wrote:
>
>>HTML can be read by any browser currently in use, which is not true of
>>XHTML.
>
> Which browsers can't read Appendix C XHTML ?
W3 can read it ... but it treats <foo /> as per the SGML spec (i.e. meaning
the same as <foo>>).
> Use Strict (either one), because it keeps IE's CSS rendering models
> under control.
Myth. The Doctype switching question is more complicated then that. You can
trigger standards mode with a Transitional Doctype.
http://gutfeldt.ch/matthias/articles/doctypeswitch/table.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
.... will trigger Standards mode in MSIE.
> IMHO it's better to be slightly invalid (with <a target="" > etc.) than to
lose Strict in favour of valid Transitional.
And better yet to not use the target attribute. It has three purposes:
1. For targetting frames. Frames have all sorts of problems and are best
avoided in almost every case.
2. For pushing new windows on users. It is better to let the user decide
when they want a new window.
3. For breaking out of third party frames. JavaScript will suffice for most
users, and users who don't have JavaScript are generally savvy enough to
break out manually.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
[Back to original message]
|