json-ld-api icon indicating copy to clipboard operation
json-ld-api copied to clipboard

Fix IDL definition of `LoadDocumentCallback`

Open tidoust opened this issue 5 months ago • 1 comments

Dictionary arguments cannot be nullable in Web IDL:

"Although dictionary types can in general be nullable, they cannot when used as the type of an operation argument or a dictionary member." https://webidl.spec.whatwg.org/#dfn-nullable-type

Note: this was missed before because the webidl2 checker did not validate arguments in callback definitions. It now does.


Preview | Diff

tidoust avatar Jul 24 '25 08:07 tidoust

Thanks, although this may be a controversial opinion, I think it is low-enough impact to be considered a class-2 change.

gkellogg avatar Jul 24 '25 17:07 gkellogg