Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5729

Avoid using input names that conflict with JavaScript DOM API method and attribute names

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.17.0
    • 6.18.0, 7.0.0-M4
    • wicket
    • None

    Description

      If you use input names that conflict with JavaScript DOM API method and attribute names the ability to use the DOM method/attribute on the form element is hampered.

      For example, JQuery stops working if you have a form control with input name "nodeName" (<select name="nodeName">).

      This is because form.nodeName is no longer a string, but is a element. JQuery expects element.nodeName to return a string and exceptions ensue.

      Attachments

        Activity

          People

            jesselong Jesse Long
            jesselong Jesse Long
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: