Skip to content

matchByName breaks under jQuery 1.5.1 on ie8 #26

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

Open
si-g opened this issue Mar 16, 2011 · 0 comments
Open

matchByName breaks under jQuery 1.5.1 on ie8 #26

si-g opened this issue Mar 16, 2011 · 0 comments

Comments

@si-g
Copy link

si-g commented Mar 16, 2011

matchbyname causes a syntax error when using jquery 1.5.1 on ie8
e.g.

selector = "[name=ctl00$ctl00$_mainContent$_mainToolbar$_flightSearch$_origin], [id=ctl00$ctl00$_mainContent$_mainToolbar$_flightSearch$_origin]" fails

Seems to require the single quotes e,g,

function matchByName(name) {
var selector = "[name='" + name + "'], [id='" + name +"']";
// include elements in this set that match as well a child matches
return self.filter(selector).add(self.find(selector));
}

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

1 participant