diff --git a/index.bs b/index.bs index 3356e57..2c763c6 100644 --- a/index.bs +++ b/index.bs @@ -583,6 +583,7 @@ interface SpeechSynthesisUtterance : EventTarget { interface SpeechSynthesisEvent : Event { readonly attribute SpeechSynthesisUtterance utterance; readonly attribute unsigned long charIndex; + readonly attribute unsigned long charLength; readonly attribute float elapsedTime; readonly attribute DOMString name; }; @@ -766,6 +767,11 @@ These events bubble up to SpeechSynthesis. No guarantee is given as to where charIndex will be with respect to word boundaries (such as at the end of the previous word or the beginning of the next word), only that all text before charIndex has already been spoken, and all text after charIndex has not yet been spoken. The user agent must return this value if the speech synthesis engine supports it, otherwise the user agent must return undefined. +