W3C home > Mailing lists > Public > www-voice@w3.org > October to December 2001

Re: "count" attribute in catch?

From: Markku Savela <msa@msa.tte.vtt.fi>
Date: Fri, 14 Dec 2001 15:34:26 +0200
Message-Id: <200112141334.PAA28841@msa.tte.vtt.fi>
To: www-voice@w3.org
More questions... in "5.2.2 Catch", the "count" attribute...


      .... Each <form>, <menu> and form item maintains a counter for
      each event that occurs while it is being visited; these counters
      are reset each time the <menu> or form item's <form> is
      re-entered.

Is the event counter incremented in all scopes or only up to the level
where catch occurs?

      E.g., if a form catch is the "best" catch for particular event,
      does the counter for this event increment at document scope or
      not?

      Or, otherway, if document level matches best, is the counter
      incremented in the inner levels (form, form item)? (at least
      this would seem logical)

As event count can cleared for field items, or gets cleared on
entering the form, it can happen that

      document "some.event" count = 3;
      form "some.event" count = 1;

and, if event does not increment count on all levels, it can also
happen (outer scope count < inner scope count)

      document "some.event" count = 1;
      form "some.event" count = 3;

So, the count to be used in matching the catch elements "count"
attribute is not constant when event is thrown, but depends on the
scope where the catch element is? Or, is it the count at the scope
where the throw occurs (e.g. in latter case, if throw originates at
form scope, the count is "3" also when testing the document level
catchers)?

I'm not saying this is incorrectly defined, just pointing out that
things may get fairly complex, and definitions would need some
clarifications, at least for me... :-)
Received on Friday, 14 December 2001 08:39:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 October 2006 12:48:54 GMT