[ 
https://issues.apache.org/jira/browse/WW-5081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart resolved WW-5081.
-------------------------------
    Resolution: Fixed

> Struts default textarea template fails w3c validation
> -----------------------------------------------------
>
>                 Key: WW-5081
>                 URL: https://issues.apache.org/jira/browse/WW-5081
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Tags
>    Affects Versions: 2.5.17
>            Reporter: Michael Hum
>            Assignee: Lukasz Lenart
>            Priority: Trivial
>             Fix For: 2.6
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The textarea default template 
> (https://github.com/apache/struts/blob/master/core/src/main/resources/template/simple/textarea.ftl)
>  fails W3C validation because the "rows" and "cols" attribute default to 
> {{""}} if none is provided, which is not a valid value:
> {code:html}
> <s:textarea id="test" name="test"/>
> {code}
> Which generates:
> {code:html}
> <textarea name="test" cols="" rows="" id="test"></textarea>
> {code}
> Which fails if run through the validation tool: 
> https://validator.w3.org/nu/#textarea



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to