-
Notifications
You must be signed in to change notification settings - Fork 673
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
Error in sonar analyzing this rule #610
Comments
The line throwing the exception is this one. Should we make something like this in the const content = body.content || body.rawContent.toString() or the content encoding has to be |
@alrra you are the one that knows more about the manifest spec. What do you think? |
@gemal in the meantime if you want to see more results you can change your manifest encoding to |
according to https://developer.mozilla.org/en-US/docs/Web/Manifest: |
No.
In this type of cases, rules like this one should fail since the user basically serves binary data, so not valid JSON. |
Report an error if the manifest content type is not valid. ---------------------- Fix webhintio#610
Is there anything we can do from the axe-core side to help with this problem? |
Hi @dylanb, For this specific issue the problem was in our code and #616 should fix it. Nevertheless, the axe-core rule timeouts quite often with jsdom as you are already aware 😔 Do you know if there are any perf gains in axe-core's 3.x branch? |
@molant 3.0 does not contain any significant performance improvements although it does bypass the DOM for some operations so it might be faster in a JSDOM environment. you should try that out. Out of pure interest, why do you use JSDOM rather than headless Chrome? |
Lack of time to get all the things we want done 😔 Opened an issue to track that. I'll let you know how it goes. |
Report an error if the manifest content type is not valid. ---------------------- Fix webhintio#610
Report an error if the manifest content type is not valid. ---------------------- Fix webhintio#610
Report an error if the manifest content type is not valid. ---------------------- Fix webhintio#610
Report an error if the manifest `content` is not text. ---------------------- Fix #610
@gemal You should be able to analyze your site without problems now: |
after the update to 0.13.0
https://sonarwhal.com/scanner/c094bc44-a740-4f8b-a813-de82bd9c90d0
The text was updated successfully, but these errors were encountered: