passing the htmlFormElement instead of domdoc for forms and finishing up the mochitest