Skip to content

Commit fa15fc6

Browse files
authored
Add notes on security
1 parent 3baa139 commit fa15fc6

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
@@ -58,6 +58,11 @@ interactive({
5858
`boolean` — Whether `node` is an [`Element`][element] categorised as
5959
[*interactive*][spec].
6060

61+
## Security
62+
63+
`hast-util-interactive` does not change the syntax tree so there are no openings
64+
for [cross-site scripting (XSS)][xss] attacks.
65+
6166
## Contribute
6267

6368
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -119,3 +124,5 @@ abide by its terms.
119124
[element]: https://github.com/syntax-tree/hast#element
120125

121126
[spec]: https://html.spec.whatwg.org/#interactive-content
127+
128+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)