Skip to content
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

props-json security tip #17

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ While being more verbose than [named attributes](#named-attributes), it lets you

If a `props-json` property exists, all other named attributes will be ignored.

**NOTE:** Be careful when serializing arbitrary JSON into a `props-json` property, as it may inadvertently open a security hole for XSS. Use the [`serialize-javascript`](https://github.com/yahoo/serialize-javascript) package instead of `JSON.stringify` to be safe.

### Shadow DOM

Remount doesn't use Shadow DOM by default. To enable it, pass the `shadow: true` option.
Expand Down