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

context.getElementById can fail #49

Open
drobert opened this issue Oct 28, 2010 · 0 comments
Open

context.getElementById can fail #49

drobert opened this issue Oct 28, 2010 · 0 comments

Comments

@drobert
Copy link

drobert commented Oct 28, 2010

Coming from a jquery background, I would expect this to work:
var container = x$('#container');
var containee = container.find('#containee');
Instead, you end up with context.getElementById is not a function

A quick fix would be to check to see if context has a getElementById function and if not, force a call from document instead of context.

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