[
https://issues.apache.org/struts/browse/WW-2493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43260#action_43260
]
Sami Dalouche commented on WW-2493:
-----------------------------------
1] I am referring to the XHTML standard.
It looks like name has been deprecated in XHTML.
http://www.w3.org/TR/xhtml1/#h-4.10
> Note that in XHTML 1.0, the name attribute of these elements is formally
> deprecated, and will be removed in a subsequent version of XHTML.
Concerning the "action" attribute, I was just plain wrong. this is definitely
required, and I don't even see how the form could work without that anyways ;)
2] on my setup, with struts 2.1.0 a simple call like :
<@s.submit
theme="css_xhtml"
value="Submit" />
generates the following code :
<div align="right" id="wwctrl_actionName">
<input type="submit" id="actionName_2_0" value="Submit" />
</div>
and yes, I do see the condition in the FTL template.
<#if parameters.align?exists>
align="${parameters.align?html}"<#t/>
</#if>
However, it does print the div align="right", so I guess this must come from
the Java code that would set a default value
> XHTML compliance errors in CSS_XHTML theme
> ------------------------------------------
>
> Key: WW-2493
> URL: https://issues.apache.org/struts/browse/WW-2493
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.1.0
> Reporter: Sami Dalouche
>
> 1] @s.form uses non standard HTML attributes
> <form id="x" name="formName" onsubmit="return true;" action="actionName">...
> => action and name are not standard HTML attributes
> 2] Also, @s.submit always defaults to adding a "align=" attribute, which is
> not XHTML compliant.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.