Re: [w3ctag/design-reviews] Requesting a TAG review of CSS Custom Highlight API Module Level 1 (#584)

@hober and I discussed this today in our VF2F. We noticed that `HighlightsRegister` is a setlike, but throws when a `Highlight` object with an existing registered name, which indicates that perhaps maplike would have been more appropriate? It's not ideal developer experience if developers need to iterate the entire data structure before registering their object, to check if an existing one of the same name exists. Maplike would also provide an easy way to get all ranges under a given name.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/584#issuecomment-767655588

Received on Tuesday, 26 January 2021 16:18:51 UTC