SVN: r24268 - in trunk: quixote/form quixote/form2
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Tue, 18 May 2004 15:48:38 -0400
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: nascheme
Date: 2004-05-18 15:47:17 -0400 (Tue, 18 May 2004)
New Revision: 24268
Modified:
trunk/quixote/form/widget.py
trunk/quixote/form2/widget.py
Log:
Repair HTML. <input> tags cannot have separate a closing tag.
Modified: trunk/quixote/form/widget.py
===================================================================
--- trunk/quixote/form/widget.py 2004-05-18 19:33:04 UTC (rev 24267)
+++ trunk/quixote/form/widget.py 2004-05-18 19:47:17 UTC (rev 24268)
@@ -500,12 +500,12 @@
checked = ValuelessAttr
else:
checked = None
- r = htmltag("input",
+ r = htmltag("input", xml_end=True,
type="radio",
name=self.name,
value=key,
checked=checked)
- tags.append(r + htmlescape(description) + htmltext('</input>'))
+ tags.append(r + htmlescape(description))
return htmlescape(self.delim).join(tags)
Modified: trunk/quixote/form2/widget.py
===================================================================
--- trunk/quixote/form2/widget.py 2004-05-18 19:33:04 UTC (rev 24267)
+++ trunk/quixote/form2/widget.py 2004-05-18 19:47:17 UTC (rev 24268)
@@ -493,13 +493,13 @@
checked = 'checked'
else:
checked = None
- r = htmltag("input",
+ r = htmltag("input", xml_end=True,
type="radio",
name=self.name,
value=key,
checked=checked,
**self.attrs)
- tags.append(r + htmlescape(description) + htmltext('</input>'))
+ tags.append(r + htmlescape(description))
return htmlescape(self.delim).join(tags)