`HIDCollectionInfo` dictionary contains a sequence of `HIDCollectionInfo`, which the WebIDL spec forbids.
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 15/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- api
Research direction
The problem is the HIDCollectionInfo dictionary definition in the WebHID spec source, where its children member is a sequence of the same dictionary. Read that definition, then the WebIDL rule on dictionary member types it cites. Done means maintainers agree on a resolution, such as changing WebIDL, adding a spec note, or restructuring the type, and that decision is recorded. Writing a patch first would be premature.
Written by the indexing model from the issue text.
Description
What is the issue with the WebHID Standard?
The HIDCollectionInfo dictionary has a member sequence<HIDCollectionInfo> children;. However, the WebIDL spec states that for dictionaries:
The type of a dictionary member must not include the dictionary it appears on. A type includes a dictionary D if at least one of the following is true:
- ...
- the type is a dictionary, one of whose members or inherited members has a type that includes D
So HIDCollectionInfo having a member of type sequence<HIDCollectionInfo> seems to be forbidden.
I don't have a great idea for what to do about this, since it seems like HID requires this recursive type. Maybe we could change the WebIDL spec? Or at least put a note in the WebHID spec about this?
- Dominant language
- HTML
- Stars
- 166
- Forks
- 38
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from whatwg/hid
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
`requestDevice()` step 7.6 sets an already-open device's state to "closed"Possibly taken @gregstoll claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
In report parsing, after parsing a Collection tag, removing the first item of `usages` has no effectPossibly taken @gregstoll claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
fix(rodex): sent mail loses the last character of title and bodyPossibly taken @baphomello claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NatLabRockies/openstudio-mcp#282 ·
Maintainers usually reply within 1 day
-
type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
siyuan-note/siyuan#21692 ·
Maintainers usually reply within 1 day