[ZPT] FW: [Zope] TAL::Selecting the current value in a select
box
Philipp von Weitershausen
philikon@gmx.net
Mon, 03 Jun 2002 12:08:44 +0200
Chris W wrote:
> selected python:item.value==current_value;" - Why does this tag produce
> selected="selected" and not just selected?
Because <option selected> is not valid XML. An attribute always needs a
value. Thus, it renders <option selected="selected">. Try this with the
W3C XHTML validator and you will see that this is the only way to make
the XHML well-formed.
Phil