W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: HTMLFormElement submit Method

From: Philippe Le Hegaret <plh@w3.org>
Date: 11 Feb 2002 14:22:21 -0500
To: Steven Elliott <elliott@mail.cibertribe.pt>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1013455342.25719.102.camel@jfouffa>
On Tue, 2001-12-11 at 14:04, Steven Elliott wrote:
> Microsoft (MSDN site) claims that the submit method of a form does not
> invoke the onsubmit event handler.
> Microsoft goes on to claim on the same page that this method (submit method)
> is defined in the W3C DOM Level 1.
> The reference I find for the HTMLFormElement in the DOM is section 2.5.5.
> Object Definitions.  Here it defines the submit method as performing the
> same action as a submit button which implies invoking the onsubmit event.
> I cannot find any specific reference here for whether or not the onsubmit
> event should or should not be included.
> Can you clarify this please because I believe not calling an onsubmit method
> if one is defined for a form would be a violation of the W3C L1 DOM?

Unfortunately, given the differences between implementations, it was not
possible to find a common ground on this issue. No changes were in the
specification. You cannot rely on having an event when invoking the
submit() method.

Please, let us know if you are (or are not) satisfy with this decision,

for the DOM WG.
Received on Monday, 11 February 2002 14:22:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC