Does Solid handle XSS and event cross-browser compatibility? #372
Replies: 1 comment 1 reply
-
In terms of XSS, Solid sets all body text using It's probably worth me doing an audit since I've never done so. I did try all the attribute examples in the document and they seem to be fine. But I imagine that is more based on the browser than anything I'm doing. So I will take a look at what Preact does. There may be some cases I haven't protected against. In terms of SSR I do escape all strings and inputs in body and attributes. For events the answer is no. I followed the lead of Preact etc and am doing nothing special to normalize events. There is a system of partial event delegation but it isn't for standardization but rather performance and some advanced features like Portals and Progressive Hydration. |
Beta Was this translation helpful? Give feedback.
-
FIrst off, just found Solid and I'm very impressed by the speed and small bundle size—it's exactly the kind of framework I've been looking for for quite a while! Looking forward for using it in a few upcoming projects.
Just a couple questions:
input[type='file']
in Safari vs Chrome)?React does both of these things. XSS, events. I know Solid isn't trying to replace React, and personally I like Solid's mental model better. It would just be to know this before diving head-first into Solid.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions