RE: [PEAR-DEV] Quick Answer about HTML_Progress and XHTML Transitional

From: Date: Fri, 05 Dec 2003 13:17:26 +0000
Subject: RE: [PEAR-DEV] Quick Answer about HTML_Progress and XHTML Transitional
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24196@lists.php.net to get a copy of this message
Hi, You have the mention about it in user guide, but it should say that this is absolute necessary to use XHTML1.0 Strict. Most of web applications I saw use Transitional, even Pear Page prints XHTML 1.0 Transitional by default. More important, if page have no Doctype declaration, it's treated as Transitional. At least IE 5.x-6.x. Also there should be note about using HTML_Progress with Pear Page class. By default it adds XmlProlog which somehow makes IE to treat "Strict" doctype as transitional: <? // This one renders progress bar elements incorrectly $p = new HTML_Page(); $bar = new HTML_Progress(); ?> <? // This one renders progress bar elements incorrectly $p = new HTML_Page(); $p->setDoctype("XHTML 1.0 Strict"); $bar = new HTML_Progress(); ?> <? // This one works just fine ! $p = new HTML_Page(); $p->setDoctype("XHTML 1.0 Strict"); $p->disableXmlProlog(); $bar = new HTML_Progress(); ?> Don't know about Mozilla-based browsers. They are purists so maybe they don't have above problems. Another note, could we implement align for the whole progressbar, something like: $ui->setProgressAttributes("align=center"); Otherwise you need to enclose progressbar in DIV and do tricks to position it as you want. Best regards! -----Original Message----- From: Laurent Laville [mailto:pear@laurent-laville.org] Sent: Friday, December 05, 2003 10:08 To: pear-dev@lists.php.net Subject: [PEAR-DEV] Quick Answer about HTML_Progress and XHTML Transitional Hello Roman, >HTML_Progress works correctly only if doctype is XHTML 1.0 Strict. >There is no mentioning of that in any documentation. You've probably missed the mention in my tutorial; it's a tips in Beginner Guide http://pear.laurent-aville.org/HTML_Progress/apidoc/HTML_Smarty/default/HTML _Progress/tutorial_beginner.pkg.html Or perharps it' my bad english ?! >If Transitional doctype is used the page elements rendered incorrectly, >positioning is messed, etc. >Regards. >Roman. Christian Wenz wrote: >more details please: which browser are you using, etc.? Maybe it's a good idea to post this as a bug. All current browsers support DTD, so why don't used XHTML 1.0 Strict ? But please, tell us which browser are you using ? Best regards Laurent ----------------------- PHP For Ever http://pear.php.net/account-info.php?handle=farell -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.dev (#24196) next »