-
Notifications
You must be signed in to change notification settings - Fork 23
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
Bugfix/91-cssparserhelper-unescape-url #92
Conversation
Haha - also just started an implementation :) |
@phax Tell me if i should Decline this PR? |
@shagkur I like my version better because it is a bit "more clear", but I need to crosscheck the consistency to see if it is identical :) |
Anyway our effort is highly appreciated!!! |
@phax Yes, maybe there're certain situations where not all escpae sequences are covered in you implementation. The one i've taken (i.e. not written by me) seems to be quite mature on that regard. |
@shagkur Yes indeed, your implementation covers more chars. The release syntax of CSS v3 only uses the hex digits: https://www.w3.org/TR/css-syntax-3/#consume-an-escaped-code-point Also CSS 2.1 syntax only allows hex-chars but not So I would prefer to stick with the "standards based solution". What do you think? |
Indeed all these speical chars handling, as in my implementation, can be omitted and just passed on. I think, from looking at it in more detail, the only special one which needs to be even dropped is the escaped '\n', i.e. "\\n". I believe that's the only one you need to consider in your implementation. Other than that i'm quite fine with your solution and am happy to decline this PR in favour of your fix. |
Btw. will the new released version be available on mavenrepository then? |
Closed in favour of @phax standard based fix |
Okay, noted. Yes of course the new version will be available on Maven Central as 7.0.1 soon |
This is the PR for issue #91