You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the download fails, then `downloadprogress` events will stop being fired, and the promise returned by `create()` will be rejected with a "`NetworkError`" `DOMException`.
@@ -177,15 +177,13 @@ Allowing such destruction provides a way to free up the memory used by the langu
177
177
178
178
Aborting the creation process will reject the promise returned by `create()`, and will also stop signaling any ongoing download progress. (The browser may then abort the downloads, or may continue them. Either way, no further `downloadprogress` events will be fired.)
179
179
180
-
181
-
182
180
## Detailed design discussion
183
181
184
182
### Proofreading correction output
185
183
186
184
For each input, the method `proofread()` returns a promise of `ProofreadResult`:
187
185
188
-
```js
186
+
```idl
189
187
dictionary ProofreadResult {
190
188
DOMString corrected;
191
189
sequence<ProofreadCorrection> corrections;
@@ -194,7 +192,7 @@ dictionary ProofreadResult {
194
192
195
193
`corrected` is the fully corrected version of the input, while `corrections` contains a list of corrections made, their locations in the original input (e.g. so web developers can create UI to highlight the error), and optionally labels/explanations.
196
194
197
-
```js
195
+
```idl
198
196
dictionary ProofreadCorrection {
199
197
unsigned long long startIndex;
200
198
unsigned long long endIndex;
@@ -241,7 +239,7 @@ if (inputRenderIndex !== input.length){
0 commit comments