Make HTMLFormElementHelpers::submit take an enumerated argument instead ...

...of a boolean

Fixes #3677