Bug Tracker

Opened 15 years ago

Closed 15 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:


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

comment:1 Changed 15 years ago by flesler

Cc: webapi_org flesler added
Component: coreselector
Resolution: wontfix
Status: newclosed

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.