Skip to content

Commit 4a6401c

Browse files
committed
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 webmachinelearning/writing-assistance-apis#15 for the concrete use case.
1 parent 150a3b8 commit 4a6401c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xhr.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,14 +1753,14 @@ interface ProgressEvent : Event {
17531753
constructor(DOMString type, optional ProgressEventInit eventInitDict = {});
17541754

17551755
readonly attribute boolean lengthComputable;
1756-
readonly attribute unsigned long long loaded;
1757-
readonly attribute unsigned long long total;
1756+
readonly attribute double loaded;
1757+
readonly attribute double total;
17581758
};
17591759

17601760
dictionary ProgressEventInit : EventInit {
17611761
boolean lengthComputable = false;
1762-
unsigned long long loaded = 0;
1763-
unsigned long long total = 0;
1762+
double loaded = 0;
1763+
double total = 0;
17641764
};
17651765
</pre>
17661766

0 commit comments

Comments
 (0)