Posted by Jukka K. Korpela on 05/28/06 09:12
mbstevens <NOXwebmasterx@xmbstevensx.com> scripsit:
> Don't declare a doc type unless you can validate to it.
Why not? Of course it would be theoretically incorrect, but why bother about
such issues when people use theoretically incorrect constructs in much more
serious issues (like violating RFC 1036)?
On the practical side, using a DOCTYPE declaration that is one of those
mentioned in HTML specifications prevents browsers from applying
intentionally wrong processing rules ("quirks mode").
On the theoretical side, omitting a DOCTYPE declaration from a syntactically
malformed document does not make it any more valid or correct HTML document.
[Back to original message]
|