This project is archived and is in readonly mode.

#392 ✓invalid

$ method selecting element by name in IE 6

Reported by Arkh | September 23rd, 2008 @ 11:53 AM | in 2.0 (closed)

In IE 6, if I use $("kikoo") in a document where there are some elements with the name "kikoo" and one with the id "kikoo", the id one may not be selected. See attached file for a demo.

Comments and changes to this ticket

  • Arkh

    Arkh September 23rd, 2008 @ 12:09 PM

    Ok, forget it. It's in a fact a bug in IE6 which combine name and id in document.getElementById. Dunno if there's a workaround (in which case it would be awesome to integrate it).

  • Tom Occhino

    Tom Occhino September 23rd, 2008 @ 06:40 PM

    • State changed from “new” to “invalid”

    There is a workaround, but unfortunately it is very costly in terms of performance. A simple way to avoid this IE bug is to always use the same name and id attributes on your elements...

  • drapetomaniac

    drapetomaniac October 6th, 2008 @ 08:09 PM

    Just adding a note, that this also happens in IE 7.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins