Ticket #798 (new defect)
Form w/ an input name or id of "position" breaks in IE
| Reported by: | SecretAgentRege | Owned by: | |
|---|---|---|---|
| Type: | defect | Priority: | minor |
| Milestone: | Mootools version 1.2 | Component: | Core |
| Keywords: | Cc: |
Description
In IE7 & IE6, If you have a form with any type of input that has a name or id value of "position," the form breaks when you try to pass it through mootools.
This fails in IE:
<script type="text/javascript">
window.addEvent('domready',function(){
$('formid');
});
</script>
<form id="formid" name="formid">
<input type="text" name="position" id="position" />
</form>
I came across this on an employer's form that asked for the position that the user held within their company and had the select box's name as "position". Took me a while to figure out it was the input's name that was the problem (and not the form itself).
Change History
Note: See
TracTickets for help on using
tickets.