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 26969 - "Prose accompanying an interface with a pair ite..."
Summary: "Prose accompanying an interface with a pair ite..."
Status: NEW
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-04 12:49 UTC by Anne
Modified: 2019-03-01 13:46 UTC (History)
3 users (show)

See Also:


Attachments

Description Anne 2014-10-04 12:49:48 UTC
http://heycam.github.io/webidl/#dfn-values-to-iterate-over

[[
Prose accompanying an interface with a pair iterator MUST define what the list of value pairs to iterate over is. 
]]

It's a bit unclear how keys and values are mapped in such a value pair. Or in other words, what prose I should use here to identify the keys and values within the entries of a list.
Comment 1 Ms2ger 2019-03-01 13:32:10 UTC
Now at https://heycam.github.io/webidl/#dfn-value-pairs-to-iterate-over , with an example. Anne, would you still like clarification?
Comment 2 Anne 2019-03-01 13:46:10 UTC
It's a lot better, but I think today we could require specifications to return an ordered map somehow that IDL could use. Though maybe duplicates are allowed in which case I guess that idea doesn't work. In any event, probably something for a follow-up?