The "instanceof" operator can bypass the Xray wrapper mechanism. When called on web content from the browser itself or an extension the web content can provide its own result for that operator, possibly tricking the browser or extension into mishandling the element. This vulnerability affects Firefox < 56.
https://www.mozilla.org/security/advisories/mfsa2017-21/
https://bugzilla.mozilla.org/show_bug.cgi?id=1378207