Skip to content

Commit b4b2217

Browse files
authored
Add notes on security
1 parent c0d72f3 commit b4b2217

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 @@ Check if the given value is a (certain) [*element*][element].
5858

5959
`Error` — When the second parameter is given but invalid.
6060

61+
## Security
62+
63+
`hast-util-is-element` 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
@@ -117,3 +122,5 @@ abide by its terms.
117122
[node]: https://github.com/syntax-tree/unist#node
118123

119124
[element]: https://github.com/syntax-tree/hast#element
125+
126+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)