cure53 / DOMPurify

DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
https://cure53.de/purify
Other
13.67k stars 698 forks source link

Grunt build fails while building with the latest version of purify.min.js #868

Closed farhank31 closed 10 months ago

farhank31 commented 10 months ago

JS_Parse_Error { [INFO] message: 'SyntaxError: Name expected', [INFO] filename: 'purify.min.js', [INFO] line: 2, [INFO] col: 239, [INFO] pos: 427,

cure53 commented 10 months ago

We need more info here, not sure what can be done based on the error output.

cure53 commented 10 months ago

cc @ssi02014 - maybe related to your latest PR? Not sure :slightly_smiling_face:

ssi02014 commented 10 months ago

I didn't see anything in my latest PR that would be a problem, I'd need more information 🤔

https://stackoverflow.com/questions/39174738/working-js-code-gets-error-message-when-compressed-syntax-error-name-expecte

Does it resemble the reasons in the document above? I'm not sure.

farhank31 commented 10 months ago

So basically i have used the purify.min.js files in one of my project, Earlier I was using version 2.3.4 and my build was successful, when i tried doing grunt build with the latest version i am getting the above error.

cure53 commented 10 months ago

Hmm, still now sure how we can actually fix this or if this is our bug after all, sorry. Please send more info and we shall reopen this ticket.