From b11a734681804a343da0b365543905d73c1e5614 Mon Sep 17 00:00:00 2001 From: Francois Daoust Date: Thu, 24 Jul 2025 09:56:25 +0200 Subject: [PATCH] Fix IDL definition of `LoadDocumentCallback` 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. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 6c6aa58e..3ee79131 100644 --- a/index.html +++ b/index.html @@ -6572,7 +6572,7 @@

LoadDocumentCallback

         callback LoadDocumentCallback = Promise<RemoteDocument> (
           USVString url,
-          optional LoadDocumentOptions? options
+          optional LoadDocumentOptions options = {}
         );