-
Notifications
You must be signed in to change notification settings - Fork 43
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
Question about banned/disallowed tags #28
Comments
Thanks! Hmm, to be quite honest, it written was 4 years ago, so I'm not entirely sure! I think the reasoning behind this was that if we serialize the arbitrary javascript in a So for example, if browser A has some malicious extension installed that injects some sort of tracking javascript on every page, and that DOM gets serialized with |
If you feel there is a compelling use case for allowing the (de)serialization of those tags, I'd be willing to accept a pull request that allows them to be (de)serialized only if the user passes a (default |
Hi there, many thanks for your detailed explanation, that makes total sense. I had admittedly only looked at the serialization aspect, and not the fact, the result will (usually) be deserialized within a browser again. I'm working on a project, where this is not the case (instead, the serialized DOM is processed in a dedicated application, instead of a browser). In that environment, I need a “snapshot” as close as possible to the actual DOM content, so having the Thank you very much for being open for a PR -- I'm currently still in the evaluation phase, whether domJSON is the right tool (but I'm very confident in that regard :-) ). So, if we eventually decide to use it in our environment, I'll be glad to submit a PR. Again, thank you for your efforts! |
@azaslavsky It's been a while, but I made great experiences with domJSON, so I've actually added a
|
Separate PRs would be great. Would you mind also updating the docs (both gh-pages and README) if its not too hard? Thank you so much for the contribution! 💯 |
@azaslavsky Done -- see #31, #32, #33 😸 |
You are an absolute champion. These are all excellent additions to the library, and I very much appreciate you taking the time to add such clean implementations. :) |
@azaslavsky Thanks to you for a great foundation 👍 Could you publish the updated version to NPM and add the |
Great tool! However, I was wondering:
domJSON defines the tags
<link>
and<script>
as 'disallowed', and states the following:What's the reason behind this? What would be the security implications of just serializing them as well?
The text was updated successfully, but these errors were encountered: