Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change parse/parseAll to throw TypeError #560

Merged
merged 1 commit into from
Jan 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions css-typed-om/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ and parseMultiple set to true.

1. Attempt to parse |property| as an <<ident>>.
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=].
Expand All @@ -156,7 +156,7 @@ and parseMultiple set to true.

3. Attempt to <a lt="parse something according to a CSS grammar">parse</a> |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.

Expand Down