Skip to content

Commit 4954a96

Browse files
committed
[css-font-loading] Use the same error for parsing descriptors in constructor and later.
1 parent b6a9d00 commit 4954a96

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

css-font-loading/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The <code>FontFace</code> Interface</h2>
111111

112112
On setting, parse the string according to the grammar for the CSS ''@font-face'' rule.
113113
If it does not match the grammar,
114-
throw a TypeError;
114+
throw a SyntaxError;
115115
otherwise, set the attribute to the provided string.
116116

117117
<dt><dfn>variant</dfn>, <span attribute-info for=variant></span>
@@ -129,7 +129,7 @@ The <code>FontFace</code> Interface</h2>
129129

130130
On setting, parse the string according to the grammar for the CSS ''@font-face'' rule.
131131
If it does not match the grammar,
132-
throw a TypeError;
132+
throw a SyntaxError;
133133
otherwise, set the attribute to the provided string.
134134

135135
<dt><dfn>status</dfn>, <span attribute-info for=FontFace/status></span>

css-font-loading/Overview.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ <h2 class="heading settled heading" data-level=2 id=fontface-interface><span cla
247247

248248
<p>On setting, parse the string according to the grammar for the CSS <a class=css data-link-type=maybe href=http://dev.w3.org/csswg/css-fonts-3/#at-font-face-rule title=@font-face>@font-face</a> rule.
249249
If it does not match the grammar,
250-
throw a TypeError;
250+
throw a SyntaxError;
251251
otherwise, set the attribute to the provided string.</p>
252252

253253
<dt><dfn class=idl-code data-dfn-for=FontFace data-dfn-type=attribute data-export="" id=dom-fontface-variant>variant<a class=self-link href=#dom-fontface-variant></a></dfn>, <span data-attribute-info="" for=variant> of type <a data-link-type=idl-name title=domstring>DOMString</a></span>
@@ -265,7 +265,7 @@ <h2 class="heading settled heading" data-level=2 id=fontface-interface><span cla
265265

266266
<p>On setting, parse the string according to the grammar for the CSS <a class=css data-link-type=maybe href=http://dev.w3.org/csswg/css-fonts-3/#at-font-face-rule title=@font-face>@font-face</a> rule.
267267
If it does not match the grammar,
268-
throw a TypeError;
268+
throw a SyntaxError;
269269
otherwise, set the attribute to the provided string.</p>
270270

271271
<dt><dfn class=idl-code data-dfn-for=FontFace data-dfn-type=attribute data-export="" id=dom-fontface-status>status<a class=self-link href=#dom-fontface-status></a></dfn>, <span data-attribute-info="" for=FontFace/status> of type <a data-link-type=idl-name href=#enumdef-fontfaceloadstatus title=fontfaceloadstatus>FontFaceLoadStatus</a>, readonly</span>

0 commit comments

Comments
 (0)