Skip to content

Commit 4b7d585

Browse files
committed
Add notes on security
1 parent 41f1c2e commit 4b7d585

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,11 @@ Yields:
275275
* § — Not very interested in writing / including the code for this
276276
* ‖ — Too new, the spec is still changing
277277

278+
## Security
279+
280+
`hast-util-select` does not change the syntax tree so there are no openings for
281+
[cross-site scripting (XSS)][xss] attacks.
282+
278283
## Contribute
279284

280285
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -339,4 +344,6 @@ abide by its terms.
339344

340345
[element]: https://github.com/syntax-tree/hast#element
341346

347+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
348+
342349
[support]: #support

0 commit comments

Comments
 (0)