Skip to content

Commit f0679c3

Browse files
authored
Add notes on security
1 parent 86ac9e4 commit f0679c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

readme.md

+7
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ scriptSupporting({
4444

4545
Check if the given value is a [*script-supporting*][spec] [*element*][element].
4646

47+
## Security
48+
49+
`hast-util-script-supporting` does not change the syntax tree so there are no
50+
openings for [cross-site scripting (XSS)][xss] attacks.
51+
4752
## Contribute
4853

4954
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -103,3 +108,5 @@ abide by its terms.
103108
[hast]: https://github.com/syntax-tree/hast
104109

105110
[element]: https://github.com/syntax-tree/hast#element
111+
112+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)