W3C home > Mailing lists > Public > www-html-editor@w3.org > January to March 2003

Re: Notification: XML-Events/6246 (script as handler)

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 19 Feb 2003 11:55:29 +0100
Message-ID: <105501c2d805$6b6ae980$df13fea9@srx41p>
To: <voyager-issues@mn.aptest.com>, "David Landwehr" <DLandwehr@novell.com>, <tvraman@almaden.ibm.com>
Cc: <www-html-editor@w3.org>

> From: "David Landwehr" <DLandwehr@novell.com>
> Subject: script as an XML Event handler

> It seems that the script element is not specified as an XML Event
> handler and what the behavior should be. Is this intentionally and if so
> what would the example from the XML Event specification mean in XHTML
> 2.0?
>
> Example from XML Events (2.3.1 ex. 1):
> <script type="application/x-javascript"
>         ev:event="submit" ev:observer="form1">
>    return docheck(event);
> </script>

Yes this is deliberate. We decided to split catching events from handling
them to give more flexibility to applications. The examples in XML Events
are non-normative and meant to be suggestive of the things that could be
done (in fact if I remember right, all examples were taken from other specs,
and modified to use XML Events).

At the coming FtF we will be discussing requirements for the companion spec
to XML Events, namely XML Handlers. I plan to have a draft requirements
document ready.

As for what it might mean, I would suggest the same as:

    onSubmit="docheck(event)"

on the relevant element.

Best wishes,

Steven
Received on Wednesday, 19 February 2003 05:55:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:44 GMT