Cache the regex in escapeRegExp
need to add index to one before making it a string.
Merge pull request #64 from gpbmike/master

Fix 'index' pseudo
Removed the special attributeGetter for "class" to fix problems where className is not a string (SVG)

AFAIK the only reason for the special attributeGetter is because getAttribute('class') is broken in IE. However, IE will use getAttributeNode('class').nodeValue since forms are broken too. That works.

This fixes the pull request #2262 in MooTools Core.
Fixes MooTools issue #2248 -  Slick.contains(document, el); failed in IE.

IE8 supports document.documentElement.contains(), but not document.contains().
Without mootools this would result in a 'object does not have this contains method'.
MooTools adds document.contains, which resulted in an infinite recursion loop.
Merge pull request #66 from calyptus/master

Remove the special attributeGetter for "class" in Slick
Merge pull request #67 from arian/fix-moo-2248-slick-contains

Fixes MooTools issue #2248 -  Slick.contains(document, el); failed in IE
version 1.1.7
ignoring files ending with ~, like vims .un~ files
fixes #69, wasnt being possible to make selections inside a custom pseudo-class selector
fixes #63, index was comming as an string and was being concatenated with 1, not added to 1
upz removing console.log on specs
adding some specs for maxlength and one more for tabindex
Merge pull request #60 from mootools/cleanup-escapeRegExp

Cache the regex in escapeRegExp
cleanup
fix on the isHTML method thats use inside the specs
adding spec for the error on the matchesSelector :nth-pseudo selector on webkit browsers
Fix this spec, should get the first element
disabling these specs since they are a little controvertial
optimization and fix. just set the context as the parentNode when it's really necessary. Added one spec to validate that sliced selectors will still work with this.