Re: [heycam/webidl] make hooking into maplike and setlike methods easier (#824)

I have one where I'm trying to make a maplike when there keys used as strings are supposed to be syntactically valid css ident tokens. It looks exactly like the above, because it's @heycam who told me how to do it. (sorry, no link yet, I'm in the middle of writing the first draft of this spec, so it's not published anywhere yet).

Another similar example, in a published spec, but without the IDL written yet, would be: https://drafts.csswg.org/mediaqueries-5/#script-custom-mq

In either case, it would be possible to describe the effect of sticking syntactically invalid values into the map (you cannot use them from the css side, and putting it there was a waste), but it seems better to prevent them from being added to the map in the first place.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/824#issuecomment-563859501

Received on Tuesday, 10 December 2019 05:39:16 UTC