fix firfox document 'click'

firfox trigger click if rootElement is document and which is 3