From 5b4e8832933e126c7eb397bbab744fb6bba63359 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 21 Jan 2025 11:25:14 +0900 Subject: [PATCH] Allow doubles for ProgressEvent's loaded and total This allows specifications to use ProgressEvents while not necessarily giving away the exact number of bytes, while maintaining a granularity greater than just 1 part in 100. See discussion in https://github.com/webmachinelearning/writing-assistance-apis/issues/15 for the concrete use case. --- xhr.bs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xhr.bs b/xhr.bs index 7fea6a8..ba4fc2a 100644 --- a/xhr.bs +++ b/xhr.bs @@ -1753,14 +1753,14 @@ interface ProgressEvent : Event { constructor(DOMString type, optional ProgressEventInit eventInitDict = {}); readonly attribute boolean lengthComputable; - readonly attribute unsigned long long loaded; - readonly attribute unsigned long long total; + readonly attribute double loaded; + readonly attribute double total; }; dictionary ProgressEventInit : EventInit { boolean lengthComputable = false; - unsigned long long loaded = 0; - unsigned long long total = 0; + double loaded = 0; + double total = 0; };