Modify ↓
Ticket #3294 (closed bug: wontfix)
Custom attribute 'start' not working in IE
| Reported by: | webapi_org | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | selector | Version: | 1.2.6 |
| Keywords: | Cc: | webapi_org, flesler | |
| Blocking: | Blocked by: |
Description
Try this:
<input start="1" type="text" id="i1" name="i1" />
<script>
$(function() { alert($("[start=1]").length); });
</script>
Works fine in FF, but not in IE7. Change the attribute name to something else and works fine, both in FF & IE.
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.

This works for elements like body. When I tried on one input (type=text), the attribute 'start' returned 'fileopen'. This means this is an IE's propietary (non-standard) attribute. It could be patched inside the selector engine but that would slow down everything just for this (very specific) situation.
In conclusion, this won't be patched. You can either rename the attribute, or do:
$("input").filter(function(){ return $(this).attr('start') == '1'; });