11:26
<mbrodesser (offline on Fridays)>
Are IDL setters in the spec expected to be called for an IDL attribute's default value?
11:34
<zcorpan>
mbrodesser (offline on Fridays): can you give an example of what you mean?
11:47
<mbrodesser (offline on Fridays)>
zcorpan: SomeInterface { DOMString someAttribute; // (default: someDefaultValue) }
11:47
<mbrodesser (offline on Fridays)>
The question arose in the context of https://github.com/whatwg/html/pull/10873#discussion_r1891023659
11:51
<zcorpan>
mbrodesser (offline on Fridays): the comment about default value has no normative effect and doesn't say anything about when the setter is invoked. The setter is called when author code sets it, or some spec text says to call it. The default value is about what the getter will return
11:52
<mbrodesser (offline on Fridays)>
zcorpan: thanks, that makes sense
20:02
<Dominic Farolino>
Can you have a union of two dictionaries? I think not, since they are not mutually distinguishable (https://webidl.spec.whatwg.org/#distinguishable-table) right?
20:54
<Noam Rosenthal>
Can you have a union of two dictionaries? I think not, since they are not mutually distinguishable (https://webidl.spec.whatwg.org/#distinguishable-table) right?
Yes, I guess you can merge the oredered maps and "implicitly treat them as dictionaries" in the spec
20:55
<Noam Rosenthal>
https://webidl.spec.whatwg.org/#ref-for-dfn-dictionary-memberâ‘§