Re: [SMARTY-DEV] Re: Bugreport: html_image shouldn't use border="0"
| From: | Rainer Müller | Date: | Wed, 25 Feb 2004 10:32:01 +0000 |
| Subject: | Re: [SMARTY-DEV] Re: Bugreport: html_image shouldn't use border="0" | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2141@lists.php.net to get a copy of this message | ||
Tarik ANSARI schrieb:
Yeah, most html_* Smarty function are not so usefull extra stuff (and date functions are all only in english, no ?). The best thing is to keep them for backward compatibility and to fix them just to make them compliant, for img tag we could do : <img src="file" alt="" style="border: 0;" width="88" height="31" /> or <img src="file" alt="" style="border: 0; width: 88px; height: 31px;" /> Both are xhtml strict compliant. "Mario Deutschmann" <mdeutschmann@pironet-ndh.com> a écrit dans le message de news:B3E252A41984D411BF68009027E5CE970E0232C3@exchange.piro.net... maybe it's because only a few people use this tag. it made never sense for me to work with that tag in my projects. what is the benefit?? kindly regards marioOkay, I set up a simple test page. http://rainer.codingfarm.de/validsmarty You can view the code here: http://rainer.codingfarm.de/validsmarty/index.phps http://rainer.codingfarm.de/validsmarty/templates/index.tpl (if your browser wants to render it, view the source) I noticed no problem expect the one with border="0". Regards, Raim-----Ursprüngliche Nachricht----- Von: Rainer Müller [mailto:rainer.mueller@codingfarm.de] Gesendet: Mittwoch, 25. Februar 2004 01:47 An: smarty-dev@lists.php.net Betreff: [SMARTY-DEV] Re: Bugreport: html_image shouldn't use border="0" Rainer müller schrieb:Hi, currently html_image creates an img tag with the attributeborder="0". Thisisn't good because in XHTML there is no attribute borderfor the img tag.border should not be used by default and should only beenabled with anextra param border. RaimDoes nodoby noticed that? Or is there nobody interested in valid html? Raim -- Smarty Development Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php