From 5376bd92e84f2ef19e2a0f6cb85c3ac72a670329 Mon Sep 17 00:00:00 2001 From: Darren Shen Date: Mon, 15 Jan 2018 10:19:50 +1100 Subject: [PATCH] Change parse/parseAll to throw TypeError --- css-typed-om/Overview.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index f5beccf6..651771ff 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -146,7 +146,7 @@ and parseMultiple set to true. 1. Attempt to parse |property| as an <>. If this fails, - [=throw=] a {{SyntaxError}} and exit this algorithm. + [=throw=] a {{TypeError}} and exit this algorithm. Otherwise, let |property| be the parsed result. If |property| does not start with two dashes (U+002D HYPHEN), let |property| be |property| [=ASCII lowercased=]. @@ -156,7 +156,7 @@ and parseMultiple set to true. 3. Attempt to parse |cssText| according to |property|’s grammar. If this fails, - [=throw=] a {{SyntaxError}} and exit this algorithm. + [=throw=] a {{TypeError}} and exit this algorithm. Otherwise, let |value| be the parsed result.