Re: clearAllTemplates() generates surplus "/"

From: Date: Sat, 16 Aug 2003 04:39:50 +0000
Subject: Re: clearAllTemplates() generates surplus "/"
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7237@lists.php.net to get a copy of this message
Hi! Brad Hubbard wrote:
I'm using Quickform 1.63 and have struck a small problem with clearAllTemplates() When I use the afforementioned function I end up with some of my elements ending up with a surplus forward slash at the end of the tag.
Current revision of QuickForm.php is 1.114 :] And clearAllTemplates() is deprecated right now.
This is not causing major headaches as it appears to render properly in the browser (at least in Konqueror), but it's annoying. After the call to clearAllTemplates() if I print the _elementTemplate string it's just "{element}" which looks ok. An example generated by QuickForm_example2.php; <input size="3" name="tmp_text2[0]" type="text" />
This is intended behaviour, done to comply with XHTML. In XML all tags should be closed, if the tag does not have a closing one, then it is written this way. This does not cause problems with any major browser, BTW.

« previous php.pear.general (#7237) next »