Re: Using the X in XHTML to make hacks work in validators

Benjamin Hawkes-Lewis <[email protected]>
Newsgroups gmane.comp.web.html.general
Message-ID <[email protected]>
Kornel Lesinski wrote:
> If you just want to appease the W3C Validator, then write your own DTD.
> 
> I've written one that allows <input type=search>:
> 
> <!DOCTYPE html PUBLIC "-//KURS BROWSEHAPPY//DTD XHTML 1.0 Strict + 
> Hacks//EN" "http://kurs.browsehappy.pl/xhtml.dtd">
> See http://kurs.browsehappy.pl/xhtml.dtd
> 
> It's not using the X of XHTML. For HTML it looks almost identical.

In case it's not obvious, this may "validate", but you're no longer 
validating XHTML 1.0 Strict.

Compare:

http://www.alistapart.com/articles/customdtds2/

There's a value in using a custom DTD (or a schema, or anything really) 
to enforce your own coding standards.

There seems very little value in "appeas[ing]" the validator as though 
it were some sort of deity demanding blood sacrifice.

--
Benjamin Hawkes-Lewis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.