This project is archived and is in readonly mode.

#595 ✓invalid

Subselectors input[name^=something] in IE6

Reported by masterm1nd | February 16th, 2009 @ 07:34 PM | in 2.0 (closed)

Firefox behavior differs from IE6 behavior when selecting elements using


FF returns list of elements IE6 returns empty list

Comments and changes to this ticket

  • masterm1nd

    masterm1nd February 16th, 2009 @ 08:15 PM

    From further testing, it seems that the bug occurs only if the Element which is being search for is created with new Element('input').set('name', 'something').inject(body);

    If the element is hardcoded into the document, IE finds those elements, but elements created by Mootools, it cannot find.

  • masterm1nd

    masterm1nd February 16th, 2009 @ 08:19 PM

    Check the file attached with test case,

    check in IE and and Firefox and you will see the difference

  • masterm1nd

    masterm1nd February 16th, 2009 @ 08:20 PM

    Comments added to the test.html

  • Valerio

    Valerio February 18th, 2009 @ 03:40 AM

    • State changed from “new” to “invalid”

    Explorer is bitchy (surprise!) when creating elements with names. This is why we added a "props" argument to new Element:

    new Element(tagName, {name: "somename"});

    This will force ie to create an element with the specified name.

    set('name', "somename"), or setAttribute('name', "somename") will never work.

Create your profile

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

Shared Ticket Bins

People watching this ticket