![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
The different doc types is a bit worrying though - but I don't know enough about them yet, to worry too much. I'll try and stay with strict html. AIUI, IE does not really treat XHTML as XHTML. Rather it reverts to |
#2
| |||
| |||
|
|
The different doc types is a bit worrying though - but I don't know enough about them yet, to worry too much. I'll try and stay with strict html. AIUI, IE does not really treat XHTML as XHTML. Rather it reverts to quirks mode and treats the code as HTML Transitional. |
#3
| |||
| |||
|
|
AIUI, IE does not really treat XHTML as XHTML. |
|
Rather it reverts to quirks mode |
|
and treats the code as HTML Transitional. |
#4
| ||||
| ||||
|
|
Given an XHTML document served as XHTML Mozilla based browsers will go in to XML mode. This has a number of effects, including turning off incremental rendering and support for document.write. |
|
2: Strict Vs Quirks mode |
|
An XHTML Doctype will IF and ONLY if it is the first data in the document (i.e. there is no XML prolog[1] or comment before the Doctype) will trigger Standards mode (and cause IE to not intentionally make bugs (it will exhibit some entirely new bugs though)). If there is anything before the Doctype, or if the Doctype is HTML 4.01 Transitional with NO URL, then Quirks moed will be triggered. |
|
[1] You can't have one of these in an XHTML document served as text/html anyway |
#5
| |||
| |||
|
|
Anything but whitespace preceding the doctype declaration triggering quirks mode is particular to IE and some old Opera versions (O7.2 IIRC). |
|
[1] You can't have one of these in an XHTML document served as text/html anyway Sure you can. |
#6
| |||
| |||
|
|
[1] You can't have one of these in an XHTML document served as text/html anyway Sure you can. http://www.w3.org/TR/xhtml1/#C_1 It's debatable. |
|
You have to follow Appendix C before serving as text/html, but Appendix C is amazingly fuzzy in some places. (Yet another reason to stick to HTML). |
#7
| |||
| |||
|
|
It's debatable. There may be pragmatic reasons to avoid it |
#8
| |||
| |||
|
|
It's debatable. There may be pragmatic reasons to avoid it My comment was more "Forbidden by spec" then "Not a good idea". |
#9
| |||
| |||
|
|
Spartanicus wrote: It's debatable. There may be pragmatic reasons to avoid it My comment was more "Forbidden by spec" then "Not a good idea". |
#10
| |||
| |||
|
|
David Dorward <dorward (AT) yahoo (DOT) com> wrote: It's debatable. There may be pragmatic reasons to avoid it My comment was more "Forbidden by spec" then "Not a good idea". Then kindly provide a normative reference to this. |
![]() |
| Thread Tools | |
| Display Modes | |
| |