[whatwg] input type=barcode?
tobie.langel at gmail.com
Fri Sep 7 06:15:19 PDT 2012
On Fri, Sep 7, 2012 at 6:35 AM, Ian Hickson <ian at hixie.ch> wrote:
> On Thu, 30 Aug 2012, Jonas Sicking wrote:
>> I think while in theory we could rely on UAs to enable barcode entry
>> anywhere, which definitely would provide the maximum capabilities for
>> the user. In practice it seems hard to create UI which enables that
>> while at the same time isn't annoyingly shoving a barcode button in your
>> face which you generally is not interested in using.
> Agreed. I think a UA that wanted to support this would want to know which
> attributes to provide the feature for.
> In this respect it's similar to the WebKit-proprietary x-webkit-speech
> attribute on <input>. In fact, this suggests that if other browsers are
> interested in supporting speech input, maybe we should standardise it as
> an inputmode value, e.g. inputmode="speech". Possible the inputmode=""
> attribute in that case could be switched to a list of tokens, so you could
> in fact do inputmode="latin-prose speech" or inputmode="numeric barcode"
> in order to provide the user agent with more flexibility in the UI.
There seems to be some overlap, at least in semantics, with the
capture attribute described in HTML Media Capture and recently
filed for inclusion in the Living Standard HTML spec.
Anyway these two concepts can be reconciled or their distinction clarified?
More information about the whatwg