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

contains causes "Out of Stack Space" in IE #2248

Closed
trichins opened this issue Jan 23, 2012 · 4 comments
Closed

contains causes "Out of Stack Space" in IE #2248

trichins opened this issue Jan 23, 2012 · 4 comments
Assignees
Labels
Milestone

Comments

@trichins
Copy link

If you go to mootools.net in IE9, open up the developer tools, go to the console and enter the string "document.contains($('header'))' you'll get an error "Out of stack space".

@arian
Copy link
Member

arian commented Feb 5, 2012

This is a Slick issue.

I've looked into this. The problem is that it checks if document.documentElement exists and is the native contains method.
IE however does not have document.contains. So MooTools will set it with a Slick.contains wrapper. Now when you call document.contains it will result in an infinite recursion.

Probably an extra check should be added if document.contains is a native method.

@ghost ghost assigned arian Feb 5, 2012
@arian
Copy link
Member

arian commented Feb 5, 2012

Fix: mootools/slick#67

@arian
Copy link
Member

arian commented Feb 5, 2012

This is fixed in Slick now.

@arian arian closed this as completed Feb 5, 2012
@ibolmo
Copy link
Member

ibolmo commented Feb 6, 2012

Committed: a9c73ce

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

No branches or pull requests

3 participants