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

Hi Steven,

Thanks for your reply. I can see you have a suggestion for what script as a
handler might mean, but actual I'm looking for this to be specified in the
XHTML specification (is this the intention of section 16.2.1?). I'm aware
that the examples in XML Events are non-normative and this is actually the
problem. If  the behavior for using the script element as a handler is not
specified in the XHTML specification what will assure how implementations
interpret the meaning. Will the companion specification specify behavior for
elements in the XHTML namespace?

Best regards,
David

----- Original Message -----
From: "Steven Pemberton" <steven.pemberton@cwi.nl>
To: <voyager-issues@mn.aptest.com>; "David Landwehr" <DLandwehr@novell.com>;
<tvraman@almaden.ibm.com>
Cc: <www-html-editor@w3.org>
Sent: Wednesday, February 19, 2003 11:55 AM
Subject: Re: Notification: XML-Events/6246 (script as handler)


> > 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 07:10:06 UTC