Skip to content

compareDocumentPosition(null) throws NS_ERROR_ILLEGAL_VALUE in older versions of Firefox 5 #68

Open
@barryvan

Description

@barryvan

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions