Skip to content

Commit

Permalink
fix(linter): fix jsx_no_script_url doc failed to build
Browse files Browse the repository at this point in the history
"Element is missing end tag."
  • Loading branch information
Boshen committed Nov 26, 2024
1 parent 861ae15 commit 17c0dd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/oxc_linter/src/rules/react/jsx_no_script_url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ declare_oxc_lint!(
///
/// ### Why is this bad?
///
/// URLs starting with javascript: are a dangerous attack surface because it’s easy to accidentally include unsanitized output in a tag like <a href> and create a security hole.
/// In React 16.9 any URLs starting with javascript: scheme log a warning.
/// In a future major release, React will throw an error if it encounters a javascript: URL.
/// URLs starting with `javascript:` are a dangerous attack surface because it’s easy to accidentally include unsanitized output in a tag like `<a href>` and create a security hole.
/// In React 16.9 any URLs starting with `javascript:` scheme log a warning.
/// In a future major release, React will throw an error if it encounters a `javascript:` URL.
///
/// ### Examples
///
Expand Down

0 comments on commit 17c0dd8

Please sign in to comment.