Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5081

Struts default textarea template fails w3c validation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.5.17
    • 6.0.0
    • Core Tags
    • None

    Description

      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:

      <s:textarea id="test" name="test"/>
      

      Which generates:

      <textarea name="test" cols="" rows="" id="test"></textarea>
      

      Which fails if run through the validation tool: https://validator.w3.org/nu/#textarea

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              mikehum1 Michael Hum
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h