danburzo / selery

A CSS selector parser and DOM query engine.

Home Page:https://danburzo.ro/selery/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[tokenize/parse] Return error + result tuple instead of throwing on parse error

danburzo opened this issue · comments

Change the error reporting style from throwing on parse errors to return a tuple of error and result, to better match what the CSS syntax spec describes.

Alternatively, we could add result as a detail on the error thrown.