Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

trichins opened this Issue · 4 comments

3 participants

trichins Arian Stolwijk Olmo Maldonado

If you go to 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 Stolwijk

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.

Arian Stolwijk arian was assigned
Arian Stolwijk

This is fixed in Slick now.

Arian Stolwijk arian closed this
Olmo Maldonado

Committed: a9c73ce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.