W3C home > Mailing lists > Public > www-forms@w3.org > July 2006

Re: Event questions.

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Mon, 31 Jul 2006 16:27:26 +0200
To: mark.birbeck@x-port.net
Cc: Rogelio Pérez Cano <rogeliop@satec.es>, www-forms@w3.org
Message-ID: <op.tdj430nqsmjzpq@acer3010.lan>

On Mon, 31 Jul 2006 12:27:03 +0200, Mark Birbeck <mark.birbeck@x-port.net>  

> I think Rogelio's question is whether it should *still* execute, even
> with a handler attribute on it.

Oh, you're right, I didn't read the example closely enough. Sorry Rogelio!

> It's a good question, and not one I've seen raised before. My first
> reaction is to say that for conformance reasons it would be more
> straightforward if both messages were invoked.
> Any thoughts?

XML Events says that an element defaults to a handler for an event if it  
doesn't have a handler attribute on it.

So my conclusion is that

<trigger id="trigger1">
    <message level="modal" ev:event="DOMActivate" ev:target="trigger1"
	 ev:observer="trigger1" ev:handler="#action2">
	  First Hello!!

is the same as

<trigger id="trigger1">
    <ev:listener event="DOMActivate" target="trigger1"
	 observer="trigger1" handler="#action2"/>
    <message level="modal">
	  First Hello!!

So the first <message> will not get activated.

Received on Monday, 31 July 2006 14:28:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:18 UTC