Skip to content

Commit 5a89f9a

Browse files
committed
Add notes on security
1 parent 14316a3 commit 5a89f9a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ or `h7`).
9898

9999
`Error` — When `shift` is not a valid non-null finite integer.
100100

101+
## Security
102+
103+
`hast-util-shift-heading` changes the syntax tree but can only generated
104+
headings from `h1` through `h6`.
105+
There are no openings for [cross-site scripting (XSS)][xss] attacks.
106+
101107
## Contribute
102108

103109
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -157,3 +163,5 @@ abide by its terms.
157163
[hast]: https://github.com/syntax-tree/hast
158164

159165
[node]: https://github.com/syntax-tree/hast#nodes
166+
167+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)