From b5d80b3eaf9d2ba8c42b8516320dc421360e91b7 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Mon, 12 Jan 2026 15:44:18 +0100 Subject: [PATCH] SpeechRecognitionResult and SpeechRecognitionResultList item() method needs to return a nullable. This fixes #178. --- index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index b28088a..2faa1cb 100644 --- a/index.bs +++ b/index.bs @@ -248,7 +248,7 @@ interface SpeechRecognitionAlternative { [SecureContext, Exposed=Window] interface SpeechRecognitionResult { readonly attribute unsigned long length; - getter SpeechRecognitionAlternative item(unsigned long index); + getter SpeechRecognitionAlternative? item(unsigned long index); readonly attribute boolean isFinal; }; @@ -256,7 +256,7 @@ interface SpeechRecognitionResult { [SecureContext, Exposed=Window] interface SpeechRecognitionResultList { readonly attribute unsigned long length; - getter SpeechRecognitionResult item(unsigned long index); + getter SpeechRecognitionResult? item(unsigned long index); }; // A full response, which could be interim or final, part of a continuous response or not