NV / CSSOM

Unmaintained! ⚠️ CSS Object Model implemented in pure JavaScript. Also, a CSS parser.
https://nv.github.io/CSSOM/docs/parse.html
MIT License
752 stars 98 forks source link

Improve error information about parse errors #37

Closed Munter closed 12 years ago

Munter commented 12 years ago

I've tried improving on the details of the error messages that CSSOM will throw.

The changes try to do the following:

I've changed the one thrown SyntexError with Error, since the SyntaxError seems to be reserved for node internals during failed eval().

NV commented 12 years ago

Merged, thanks!

Munter commented 12 years ago

And thank you for a quick reaction.

Any idea on when you'll release the next version? I'd like to improve my tools with this functionality asap :)

NV commented 12 years ago

Just published cssom@0.2.4.

Munter commented 12 years ago

That's great. Thank you very much

NV commented 12 years ago

Char is zero-based numbered and line is 1-based. Doesn’t look consistent to me.

Munter commented 12 years ago

You are right. Just double checked it and made a fix