Skip to content

Fix IDL definition of LoadDocumentCallback #664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Jul 24, 2025

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

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.
@gkellogg
Copy link
Member

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

@gkellogg gkellogg requested a review from pchampin July 25, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class-2 Class-2 change spec:bug
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants