### What is the issue with the Infra Standard? In the current specification, "add" is not defined. https://github.com/whatwg/infra/blob/0805ceaa349196e21f07efc41dd6543e52f42bb4/infra.bs#L1492-L1493 Therefore, insert in ordered set is missing the “do nothing in case of duplicate item” statement. There should be a definition for ordered set like `append` or `prepend`.
Activity
domenic commentedon Aug 18, 2024
Can you give an example of a spec that needs insert, and for which append/prepend does not suffice?
TomokiMiyauci commentedon Aug 18, 2024
My understanding is that
insertis already defined for set as well as list.<dfn export for=list,set>insert</dfn>Is this incorrect?
domenic commentedon Aug 19, 2024
Yes, I'm just wondering if we should delete that and rely on people using append/prepend instead.
TomokiMiyauci commentedon Aug 19, 2024
It seems necessary to investigate how much the ordered set insert is being referenced.