ArtLung
san diego california usa artlung.com is the personal website of joe crawford

Ancient DTD Hacking 2002 Jan 13

In 1999 I was inspired by the lack of the ability to validate code with things like the <nobr> tag, to write my own DTD – Document Type Definition. [see code] I think this article at Web Design Group was the thing that did it. If I remember correctly, their their validator actually listens to this “roll your own” technique. At the time there was no alternative to writing nonstandard html, and if you wanted to QA your code it was a hassle to see it complaining about things like marginwidth and marginheight in the <body> tag. The solution was to roll your own DTD and validate against that.

Modern browsers do their own thing when it comes to DOCTYPE declarations, so for public websites, using a custom doctype would probably be inviting trouble. But for QA, it could be useful. Here’s another article on this issue which may be worth your time.

Joe Crawford blogged this at 10:40pm in 2002 in January. The 13th was a Sunday. You are reading this 18 years later. Comment. There are no comments Tweet. Send email. It has hashtags→ .

Leave a Reply

Comments Open; Trackbacks Open.