I seem to recall that the decision we made a while back was: * if no doctype specified, let default reign (quirks, equivalent to writing a doctype-free webpage) * else include doctype
Take that with a grain of salt; it's been a while. Perhaps it's worth plumbing the archives for the longer discussion. --j On Tue, Oct 27, 2009 at 6:35 PM, Chirag Shah <chiragsh...@gmail.com> wrote: > Hey, > > It looks like there's a discrepancy in which HTML doctype is used > between the Java and PHP gadget renderers. > > GadgetHtmlRenderer.php says that "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD > HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">" should be > used when "quirks = false or empty in the view." > > The Java Gadget renderer will not set a default doctype if it can't > find one. Shouldn't both systems explicitly set a doctype if it's not > provided? >