![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I'm asking here, not asserting. So I'm not looking for a fight. Is the following more or less correct? If you like the logical consistency of XML and XHTML (lower case attributes, all attributes must be quoted, all tags closed, etc) you can write XHTML-like documents THAT DO NOT throw IE6 into quirksmode, if and only if you serve the document as ContentType: text/html .... Others will say "why bother, this accomplished nothing. Just use 4.01 strict!" |
#2
| |||
| |||
|
|
In article <G9-dnU9dMsk4B8PUnZ2dnUVZ_v_inZ2d (AT) bresnan (DOT) com>, salmobytes <salmobytes (AT) closenuf (DOT) org> wrote: I'm asking here, not asserting. So I'm not looking for a fight. Is the following more or less correct? If you like the logical consistency of XML and XHTML (lower case attributes, all attributes must be quoted, all tags closed, etc) you can write XHTML-like documents THAT DO NOT throw IE6 into quirksmode, if and only if you serve the document as ContentType: text/html ... Others will say "why bother, this accomplished nothing. Just use 4.01 strict!" You can use lower case and closing tags and quoting in 4.01 Strict. You can use an editor that warns of 'missing' closing tags, you can even make up your own doctype to make it an offence. |
#3
| |||
| |||
|
|
Of the practices the OP mentioned, the one that you can't do in 4.01 Strict is closing all elements, |
|
But still, if his intent is to be able to validate his own documents to his own specification, he can create his own DTD in which those tags *are* closed, while delivering the pages to clients with the 4.01 Strict doctype |
|
and letting them ignore the trailing slash in the <input>, etc., tags as the specification requires them to do. |
#4
| |||
| |||
|
|
Besides, how would you write an SGML DTD that allows <input />? |

|
|| hexadecimal EBB o-o decimal 3771 |
#5
| |||
| |||
|
|
"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> writes: Besides, how would you write an SGML DTD that allows <input />? Not in the document type declaration subset of course, but generally in the same (Annex K) way that the SGML declaration of XML does it (i.e. nothing else but ‘<input //’ in disguise). That is not to say that this is useful in the given context; on the other hand, SGML validation is never useful for HTML in the first place, besides you there are maybe 3 people alive who understand it (and interested in both HTML and SGML, that is); if your authoring tools understand all that and you really know what you are doing, I can see the benefit instead of the problem, though. ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |