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
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
Depends on:
Reported: 2011-01-19 13:01 UTC by contributor
Modified: 2012-07-18 18:48 UTC (History)
2 users (show)

See Also:


Description contributor 2011-01-19 13:01:25 UTC

I think an optional subtype should filter the presented list; like
subtype="video/*" for media, or "7" for usb
( This would
improve usability for the end-user

Posted from:
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:

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