[ 
https://issues.apache.org/struts/browse/WW-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47096#action_47096
 ] 

Wes Wannemacher commented on WW-3337:
-------------------------------------

http://www.w3.org/TR/REC-html40/types.html#type-name

Looks like periods are allowed (as long as they aren't the first character). 
I'd check the SVN log before committing the change because I thought this has 
been changed to and fro before. 

> Tag s:form silently rewrites "." in id attibute values
> ------------------------------------------------------
>
>                 Key: WW-3337
>                 URL: https://issues.apache.org/struts/browse/WW-3337
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.1.8
>            Reporter: Andreas Krüger
>             Fix For: 2.2.0
>
>
> "Affects Version/s" is actually 2.1.8.1.
> In my JSP, I have a <s:form id="some.complicated.value">
> The HTML comes out at <form id="some_complicated_value">.
> The dots in the id value silently get changed to underscores.
> I did not find this replacement documented. Places I looked include 
> http://struts.apache.org/2.1.8.1/docs/form.html and 
> http://struts.apache.org/2.1.8.1/docs/tag-syntax.html and 
> http://struts.apache.org/2.1.8.1/docs/form-tags.html .
> Suggestion:
> Either fix the tags library to not silently rewrite attribute values. This is 
> prefered by this bug reporter.
> If a developer takes the trouble to nail down the id attribute to a specific 
> value, that's the specific value that should be used.
> Or else, if there is a reason for the rewrite, kindly document both the 
> rewrite and the reason.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to