Re: [w3c/IndexedDB] Shouldn't keyPath properties be (DOMString or sequence<DOMString>)? (#235)

That would be invalid WebIDL. See https://heycam.github.io/webidl/#idl-sequence

> Sequences must not be used as the type of an attribute or constant.
>
> Note: This restriction exists so that it is clear to specification writers and API users that sequences are copied rather than having references to them passed around. Instead of a writable attribute of a sequence type, it is suggested that a pair of operations to get and set the sequence is used.

(I've made this suggestion myself at least once and had this pointed out to me. It can be done in prose, but not in pure WebIDL.)


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/235#issuecomment-380609529

Received on Wednesday, 11 April 2018 22:00:55 UTC