Bug Tracker

Ticket #3294 (closed bug: wontfix)

Opened 7 years ago

Last modified 7 years ago

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:


Try this:

<input start="1" type="text" id="i1" name="i1" />
$(function() { alert($("[start=1]").length); });

Works fine in FF, but not in IE7. Change the attribute name to something else and works fine, both in FF & IE.

Change History

comment:1 Changed 7 years ago by flesler

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

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:

  return $(this).attr('start') == '1';
Note: See TracTickets for help on using tickets.