You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of servo#198 - Manishearth:nth-child-saturate, r=SimonSapin
Saturate if nth-child value is out of range
Reusing our tokenizer because it already saturates.
There is no way to reliably get the error details from `"-12034".parse()`, since the error type is opaque and the description strings may change.
This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1401016
A less risky but also less correct fix is to simply return an error when `.parse()` fails.
r? @SimonSapin
Don't land until I can get a try run; nth-child has weird tokenization rules that we need to respect here (which is why I'm creating a new tokenizer in the first place)
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/198)
<!-- Reviewable:end -->
0 commit comments