Skip to content

Wierd IE7 selector issue #206

@jonleighton

Description

@jonleighton

Hiya,

With an older version of this library I have been getting errors in IE7 due to this selector:

form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])

Specifically, the [type] part. Using the limited debugging tools available in IE it seemed that jQuery was trying to get the type attribute on the document element, which didn't exist, and hence caused an error.

I am not able to reproduce independently from my app code :(

However, I was able to solve it by changing the selector:

form input[type=submit], form input[type=image], form button[type=submit], form button:not(button[type])

I imagine this would be more performant in any case, because it has to match fewer elements.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions