SeleniumHQ/selenium — pull request #21 by paroga (2013-03-06 13:38:06+00:00)
Title: Add Utils.getMainDocumentElement for Firefox driver

When the document is SVG instead of HTML the eventlistener for the
unload event needs to be added to documentElement instead of body.
This new function returns the corresponding element.

CLA signed