---
source: crates/biome_js_analyze/tests/spec_tests.rs
expression: inJsx.jsx
---
# Input
```jsx
<>
invalid child
invalid child
invalid child
>
```
# Diagnostics
```
inJsx.jsx:2:5 lint/correctness/noVoidElementsWithChildren FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! br is a void element tag and must not have children.
1 │ <>
> 2 │
invalid child
│ ^^^^^^^^^^^^^^^^^^^^^^
3 │ invalid child
4 │
i Unsafe fix: Remove the children.
2 │ ····
invalid·child
│ --------------- --
```
```
inJsx.jsx:3:5 lint/correctness/noVoidElementsWithChildren FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! img is a void element tag and must not have children.
1 │ <>
2 │
invalid child
> 3 │ invalid child
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 │
5 │
i Unsafe fix: Remove the children.
3 │ ····invalid·child
│ --------------- ---
```
```
inJsx.jsx:4:5 lint/correctness/noVoidElementsWithChildren FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! img is a void element tag and must not have the dangerouslySetInnerHTML prop.
2 │
invalid child
3 │ invalid child
> 4 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5 │
6 │
i Unsafe fix: Remove the dangerouslySetInnerHTML prop.
4 │ ····
│ ---------------------------------------------- ---
```
```
inJsx.jsx:5:5 lint/correctness/noVoidElementsWithChildren FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! img is a void element tag and must not have children.
3 │ invalid child
4 │
> 5 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 │
7 │ invalid child
i Unsafe fix: Remove the children.
5 │ ····
│ ------------------------- ---
```
```
inJsx.jsx:6:5 lint/correctness/noVoidElementsWithChildren FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! img is a void element tag and must not have children.
4 │
5 │
> 6 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 │ invalid child
8 │ >
i Unsafe fix: Remove the children.
6 │ ····
│ ------------------------
```
```
inJsx.jsx:7:5 lint/correctness/noVoidElementsWithChildren FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! img is a void element tag and must not have children, or the dangerouslySetInnerHTML prop.
5 │
6 │
> 7 │ invalid child
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 │ >
9 │
i Unsafe fix: Remove the children and the dangerouslySetInnerHTML prop.
7 │ ····invalid·child
│ ------------------------------------------------------------ ---
```