Michael Hum created WW-5081:
-------------------------------

             Summary: 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


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