philogb/jit — pull request #127 by dcabasson (2012-11-01 13:34:58+00:00)
Title: Adding a detection of the HTMLDocument for IE7/8 compatibility

#126

The only change I added is an aditionnal detection when the type if object to check on the nodeType and detect if it's a HTMLDocument.

Currently in IE7/8, it will return [object Object] as the type, which is interpreted as an Object and will break when $.unlink is called.

This behaviour is breaking JQuery.spacetree in IE 7/8.

Other browser correctly return [object HtmlDocument] (IE 9, Chrome and Firefox)