Skip to content

Commit 36f0f05

Browse files
authored
Add notes on security
1 parent e0d2592 commit 36f0f05

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
@@ -52,6 +52,11 @@ Labelable nodes have a `tagName` set to `button`, `keygen`,
5252
`meter`, `output`, `progress`, `select`, `textarea`, and `input`
5353
(excluding `[type=hidden]`).
5454

55+
## Security
56+
57+
`hast-util-labelable` 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
@@ -113,3 +118,5 @@ abide by its terms.
113118
[node]: https://github.com/syntax-tree/hast#nodes
114119

115120
[element]: https://github.com/syntax-tree/hast#element
121+
122+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)