Tapestry 5
  1. Tapestry 5
  2. TAP5-796

Form component generates invalid xHtml: there should not be the "name" attribute

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.5
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Form generates invalid xhtml 1.0 strict - it
      puts "name" attribute to the "form" tag and that is invalid.

      ' <form name="loginForm" id="loginForm" method="post" ...'

      P.S. these are the first 2 lines of my Layout component:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">

        Issue Links

          Activity

          Christophe Cordenier made changes -
          Link This issue is cloned as TAP5-1282 [ TAP5-1282 ]
          Howard M. Lewis Ship made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Fix Version/s 5.2.0 [ 12314122 ]
          Resolution Fixed [ 1 ]
          Hide
          Howard M. Lewis Ship added a comment -

          Removing this is not problem; you only name a form (in HTML) to reference it in a script, and of course, the right way to do that is via its id, not its name.

          Show
          Howard M. Lewis Ship added a comment - Removing this is not problem; you only name a form (in HTML) to reference it in a script, and of course, the right way to do that is via its id, not its name.
          Howard M. Lewis Ship made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Howard M. Lewis Ship made changes -
          Field Original Value New Value
          Assignee Howard M. Lewis Ship [ hlship ]
          Sergey Didenko created issue -

            People

            • Assignee:
              Howard M. Lewis Ship
              Reporter:
              Sergey Didenko
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development