It seems possible that STR-2232 and STR-2033, which are marked as
resolved/fixed, are not really fixed.

https://issues.apache.org/struts/browse/STR-2232
https://issues.apache.org/struts/browse/STR-2033


In struts 1.3.8 (and presumably 1.3.9 beta)

 <html:html xhtml="true">
 <html:form action="/itemsEdit" focus="item.description">


Will generate:


<script type="text/javascript">
 var focusControl = document.forms["itemEditForm"].elements["item.description"];

 if (focusControl.type != "hidden" && !focusControl.disabled &&
focusControl.style.display != "none") {
 focusControl.focus();
 }
</script>



Which is not really valid xhtml on account of the un-escaped "&" characters.

Here is a link to the relevant portion of the xhtml specification:

http://www.w3.org/TR/xhtml1/#h-4.8

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to