W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] IDL attribute reflecting enumerated attributes not limited to only know values

From: Mounir Lamouri <mounir.lamouri@gmail.com>
Date: Sat, 07 Aug 2010 02:55:22 +0200
Message-ID: <4C5CAEFA.6060803@gmail.com>
On 08/06/2010 09:01 PM, Ian Hickson wrote:
>> - input.autocomplete: at the moment, it is returning the content but it
>> could return the resulting autocompletion state which is maybe a bit
>> more than just being limited to only known values but still in the same
>> spirit.
> I haven't changed this; what's the use case for knowing the actual state?

Theoretically speaking, I think input.autocomplete should return the
current autocompletion state because that would follow the actual idea
of enumerated attributes limited to only known values. Indeed, these
kind of enumerated attributes doesn't return the content value but the
value associated with the current state and in that case the 'state' is
the autocompletion state.

Practical speaking, autocomplete is mostly used in writing (authors want
to force/disable autocomplete) and we can assume that a script reading
this value is going to check if the element have autocompletion. Having
input.autocomplete returning this state may prevent the authors to
repeat the algorithm thus preventing errors and making further changes
in specification easier (and transparent).
By the way, why autocomplete IDL attributes have been introduced in the

Received on Friday, 6 August 2010 17:55:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:26 UTC