bug: xapp:select tag sets wrong value of selected attribute

X-Application Version: 3.1.3

The X-Application tag

<xapp:select></pre>does not set the correct value for the attribute selected in the <pre class="ip-ubbcode-code-pre"><option></pre> tag. Thus the resulting html page is not xhtml 1.0 conform.<BR><BR>bug: <pre class="ip-ubbcode-code-pre"><option selected="true"></pre><BR><BR>correct: <pre class="ip-ubbcode-code-pre"><option selected="selected">



Best regards,


Jan Harmsen
Software Engineer
Software AG

[This message was edited by Christian Freytag on 21 Mar 2003 at 12:33.]

Hello,

yes. It is a bug: X-Application inserts or replaces attributes as ‘disabled’, ‘selected’ or ‘checked’ and sets their value with “true”, e.g.

<select name="foo"> 
  <option selected="true">...</option>
  ...
</select>
</pre><BR><BR>The correct form for this example according to the dtd of XHTML 1.0 (<A HREF="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" TARGET=_blank>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</A>) is<BR><BR><pre class="ip-ubbcode-code-pre">
<select name="foo"> 
  <option selected="selected">...</option>
  ...
</select>



Also for the other attributes mentioned before the value “true” is not correct. We fixed this bug for the next version.

If a fix for X-Application 3.1.3 is required, please send a post to the community.

Thanks,
Christian.

Hello,

this bug is fixed with X-Application 4.1.1.

Bye,
Christian.