Bugfix for DOMAPI in Firefox.