[
https://issues.apache.org/jira/browse/WICKET-5729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jesse Long resolved WICKET-5729.
--------------------------------
Resolution: Fixed
Assignee: Jesse Long
Resolved in 6.18.0 and 7.0.0-M4. Any input name that matches a JavaScript DOM
API method or attribute name is prefixed with "p::", so as to avoid conflict.
"p" for prefix, because HTML 4.01 requires name attribute to start with a
letter [A-Za-z] and "::" to avoid conflict with any other input name, as this
would never naturally occur.
> Avoid using input names that conflict with JavaScript DOM API method and
> attribute names
> ----------------------------------------------------------------------------------------
>
> Key: WICKET-5729
> URL: https://issues.apache.org/jira/browse/WICKET-5729
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 6.17.0
> Reporter: Jesse Long
> Assignee: Jesse Long
> Priority: Minor
> Fix For: 6.18.0, 7.0.0-M4
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)