This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11802 - [device] Suggestion for how to filter the list
Summary: [device] Suggestion for how to filter the list
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-19 13:01 UTC by contributor
Modified: 2012-07-18 18:48 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2011-01-19 13:01:25 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#devices

Comment:
I think an optional subtype should filter the presented list; like
subtype="video/*" for media, or "7" for usb
(http://en.wikipedia.org/wiki/Universal_Serial_Bus#Device_classes). This would
improve usability for the end-user

Posted from: 89.150.163.209
Comment 1 Ian 'Hixie' Hickson 2011-03-04 01:05:40 UTC
I think we're probably better off going even more fine-grained than USB device classes, if we go down this path. After all, each device probably needs its own hard-coded API  "personal healthcare" isn't going to be detailed enough for a page to know how to use a pulse monitor vs an oxygen monitor vs an injection controller.
Comment 2 Ian 'Hixie' Hickson 2011-03-15 06:03:27 UTC
I ended up moving away from <device> as a generic mechanism, because I couldn't work out how to make it work. If you have any concrete proposals, please don't hesitate to reopen the bug and post them here (or on one of the lists). See also this entry in the FAQ:

   http://wiki.whatwg.org/wiki/FAQ#Is_there_a_process_for_adding_new_features_to_a_specification.3F

For media, the replacement solution (getUserMedia) does handle a filter as suggested.