W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2014

[Bug 25457] Adding "AutocompleteError" to error names table

From: <bugzilla@jessica.w3.org>
Date: Wed, 17 Sep 2014 15:39:47 +0000
To: public-script-coord@w3.org
Message-ID: <bug-25457-3890-033TblCnPD@http.www.w3.org/Bugs/Public/>

--- Comment #17 from Ian 'Hixie' Hickson <ian@hixie.ch> ---
(In reply to Domenic Denicola from comment #13)
> Functions can either return values or throw exceptions. Async functions can
> either return fulfilled promises or return rejected promises.

Functions can return values, throw exceptions, and queue events to report
success or failure. requestAutoComplete() returns void, has no way to throw an
exception (it doesn't even have arguments), and it queues either an
'autocomplete' event or it fires a bunch of 'invalid' events (at various form
controls) followed by an 'autocompleteerror' event, the latter of which has a
reason field with three codes.

I don't think it makes sense for requestAutocomplete() to reject with an
exception, nor do I think it makes sense for it to resolve in the case it would
have fired 'autocompleteerror'.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 17 September 2014 15:39:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:22 UTC