Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the .attributes collection instead of parsing the HTML using regex (for type=password in IE) #8

Closed
mathiasbynens opened this issue Oct 5, 2010 · 1 comment

Comments

@mathiasbynens
Copy link
Owner

Use the .attributes collection instead of parsing the HTML using regex (for type=password in IE).

Something like this should work:

function args($elem) {
    var elAttrs = $elem[0].attributes,
        newAttrs = {},
        i = elAttrs.length;
    while (i--) {
        newAttrs[elAttrs[i].name] = elAttrs[i].value;
    }
    return newAttrs;
}
@temp01
Copy link
Collaborator

temp01 commented Oct 7, 2010

Fixed in 593350d.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants