You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2020/07/03 06:21:00 UTC
[jira] [Updated] (WW-5081) Struts default textarea template fails
w3c validation
[ https://issues.apache.org/jira/browse/WW-5081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-5081:
------------------------------
Fix Version/s: 2.6
> 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
> Priority: Trivial
> Fix For: 2.6
>
>
> 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)