Re: Changing STABLE DOCTYPE?
"Michael A. Puls II" <[email protected]> Tue, 03 Jan 2012 02:16:04 -0500
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <op.v7hyg2u11ejg13@vertiform346> |
On Mon, 02 Jan 2012 23:23:39 -0500, Michael A. Puls II <[email protected]> wrote: > On Mon, 02 Jan 2012 18:02:20 -0500, Paul Lesniewski > <[email protected]> wrote: > >> On Mon, Jan 2, 2012 at 1:34 AM, Michael A. Puls II >> <[email protected]> wrote: >>> On Fri, 30 Dec 2011 15:42:31 -0500, Paul Lesniewski >>> <[email protected]> >>> wrote: >> >>> I've been patching Squirrelmail for a long time now to make it run in >>> standards mode to fix things for Opera. I think it'd be great if >>> SquirrelMail did this by default. >> >> I'm going to propose a configuration setting so those who want to can >> change to standards mode. Please try the attached patch (against >> version 1.4.23-svn) and let me know if there are any problems. > > Will do. I tested. The patch works fine and makes the option available when configuring. Setting it to true makes the pages have: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> , which puts the pages in standards mode, which also avoids the Opera quirks mode font-size bug. I also didn't notice any issues with the display of messages or preference pages or message detail and message header plug-in pages etc. However, the transitional doctype (with the loose dtd URI specified) only triggers "almost standards mode" (see <http://hsivonen.iki.fi/doctype/>). A regular HTML 4.01 doctype with the strict dtd URI should trigger full standards mode. But, so will "<!DOCTYPE html>". As mentioned on the page, the main difference between standards mode and almost standards mode is the handling of images and alignment. If it's not a problem, it'd be best to shoot for full standards mode (or allow the choice between quirks, almost standards and standards modes). -- Michael ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ----- squirrelmail-devel mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: [email protected] List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel