Skip to content

Commit e0c0d9e

Browse files
committed
[css-font-load-events] Use TypeError, per Anne's recommendation.
1 parent fba0aa5 commit e0c0d9e

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

css-font-load-events/Overview.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,7 @@ <h5 class="heading settled heading" data-level=2.2.2.1 id=loadfont-method><span
418418

419419
<li>
420420
If the <var>font load list</var> contains no font faces,
421-
reject the promise with XXX.
422-
423-
<p class=issue id=issue-a2eabc2d><a class=self-link href=#issue-a2eabc2d></a>
424-
DOMError? Need to chat with Anne and others about idiomatic way to do errors.
421+
reject the promise with a TypeError exception.
425422

426423
<li>
427424
For all of the font faces in the <var>font load list</var>, initiate the load of any font that has
@@ -810,9 +807,6 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
810807
Need to fill it in with the real stuff.
811808

812809
<a href=#issue-e86f85cf></a><p class=issue>
813-
DOMError? Need to chat with Anne and others about idiomatic way to do errors.
814-
815-
<a href=#issue-a2eabc2d></a><p class=issue>
816810
When I define Font objects, and give them load() and ready() methods,
817811
I want to define this as simply adopting a Promise.every() of all the font ready promises.
818812
The fulfill/reject values then come out automatically.

css-font-load-events/Overview.src.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,7 @@ <h5 id='loadfont-method'>
345345

346346
<li>
347347
If the <var>font load list</var> contains no font faces,
348-
reject the promise with XXX.
349-
350-
<p class='issue'>
351-
DOMError? Need to chat with Anne and others about idiomatic way to do errors.
348+
reject the promise with a TypeError exception.
352349

353350
<li>
354351
For all of the font faces in the <var>font load list</var>, initiate the load of any font that has

0 commit comments

Comments
 (0)