Bug Tracker

Opened 7 years ago

Closed 7 years ago

#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
Blocked by: Blocking:

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 (1)

comment:1 Changed 7 years ago by flesler

  • Cc webapi_org flesler added
  • Component changed from core to selector
  • Resolution set to wontfix
  • Status changed from new to closed

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';
});
Note: See TracTickets for help on using tickets.