Skip to main content

Bug Tracker

Side navigation

#3294 closed bug (wontfix)

Opened August 26, 2008 02:18PM UTC

Closed August 26, 2008 06:01PM UTC

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.

Attachments (0)
Change History (1)

Changed August 26, 2008 06:01PM UTC by flesler comment:1

cc: → webapi_org, flesler
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:

$("input").filter(function(){
  return $(this).attr('start') == '1';
});