Modify ↓
Ticket #2188 (closed bug: duplicate)
Selector bug
| Reported by: | alexo | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.3 |
| Component: | core | Version: | 1.2.2 |
| Keywords: | Cc: | alexandru.objelean@… | |
| Blocking: | Blocked by: |
Description
Very strange bug. It breaks the selector when the 'name' attribute, contains 'name' value.
For the following markup:
<form name="formName">
<input type="text" name="name">
</form>
the selector does returns emtpy jQuery object.
$("form[name='formName']")
The problem seems to be the 'name' attribute value. If the value would be different than 'name', it would work. For instance, for the below markup, selector works ok:
<form name="formName">
<input type="text" name="aname">
</form>
Alex Objelean.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

I believe this is the same problem as #2099. I will add a comment on that ticket referencing this one so this can be used as another test case.