You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "zhouyanming (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/04/04 09:38:30 UTC

[jira] [Issue Comment Edited] (WW-3429) tag generated by produce HTML warning in validators

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

zhouyanming edited comment on WW-3429 at 4/4/12 7:37 AM:
---------------------------------------------------------

it will break backword compatibility
you should file a issue for html tidy validator
                
      was (Author: quaff):
    it will break backword compatibility
                  
> <input> tag generated by <s:checkbox> produce HTML warning in validators
> ------------------------------------------------------------------------
>
>                 Key: WW-3429
>                 URL: https://issues.apache.org/jira/browse/WW-3429
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors, Other
>    Affects Versions: 2.1.8.1
>         Environment: Apache Tomcat 5.5, 6.0.18 running on Win 32 and Fedora Code Linux x86_64. Actually, bug is relevant to any environment.
>            Reporter: Alexey Malev
>            Assignee: Lukasz Lenart
>            Priority: Minor
>              Labels: checkbox, hidden, html, input, warning
>             Fix For: 2.3.x
>
>         Attachments: CheckboxInterceptor.java, checkbox.ftl, diff.txt
>
>
> <s:checkbox> tag with default xhtml theme produce an <input> tag, like that one:
> <input type="hidden" id="__checkbox_is_vacancy_open" name="__checkbox_vacancy.open" value="true" />
> produces HTML Tidy validator warning about an attribute name and ID starting with two "_" signs. So, here is a patch I suggest to resolve this issue:
> I changed FreeMarker template and a checkbox interceptor code in such a way that prefix of that input no longer produce warning.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira