Skip to content

Commit 7c905ae

Browse files
authored
Add notes on security
1 parent 2d937da commit 7c905ae

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
@@ -52,6 +52,11 @@ Check if the given value is a [*transparent*][spec] [*element*][element].
5252

5353
`boolean` — whether `node` passes the test.
5454

55+
## Security
56+
57+
`hast-util-transparent` does not change the syntax tree so there are no openings
58+
for [cross-site scripting (XSS)][xss] attacks.
59+
5560
## Contribute
5661

5762
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -111,3 +116,5 @@ abide by its terms.
111116
[hast]: https://github.com/syntax-tree/hast
112117

113118
[element]: https://github.com/syntax-tree/hast#element
119+
120+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)