Skip to content

Commit 4047650

Browse files
darrnshntabatkins
authored andcommitted
Change parse/parseAll to throw TypeError (#560)
1 parent d90bb26 commit 4047650

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-typed-om/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ and parseMultiple set to true.
148148

149149
1. Attempt to parse |property| as an <<ident>>.
150150
If this fails,
151-
[=throw=] a {{SyntaxError}} and exit this algorithm.
151+
[=throw=] a {{TypeError}} and exit this algorithm.
152152
Otherwise, let |property| be the parsed result.
153153
If |property| does not start with two dashes (U+002D HYPHEN),
154154
let |property| be |property| [=ASCII lowercased=].
@@ -158,7 +158,7 @@ and parseMultiple set to true.
158158

159159
3. Attempt to <a lt="parse something according to a CSS grammar">parse</a> |cssText| according to |property|’s grammar.
160160
If this fails,
161-
[=throw=] a {{SyntaxError}} and exit this algorithm.
161+
[=throw=] a {{TypeError}} and exit this algorithm.
162162
Otherwise,
163163
let |value| be the parsed result.
164164

0 commit comments

Comments
 (0)