mootools/slick — Issue #68: compareDocumentPosition(null) throws NS_ERROR_ILLEGAL_VALUE in older versions of Firefox 5
Author: barryvan
Created: 2012-02-27 03:58:27+00:00
State: open

Found in Firefox 5 (one of our clients standardised on it).

Slick.Finder.js, line 217
context.compareDocumentPosition throws NS_ERROR_ILLEGAL_VALUE when passed null. Simply adding in "if (node === null) return false;" fixes the problem for me. Should I make a pull request?