--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: inJsx.jsx --- # Input ```jsx <>
invalid child
some textinvalid child some text some text some text some textinvalid 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 │ some textinvalid child 4 │ some text 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 │ some textinvalid child │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 │ some text 5 │ some text 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 │ some textinvalid child > 4 │ some text │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 │ some text 6 │ some text 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 │ some textinvalid child 4 │ some text > 5 │ some text │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 │ some text 7 │ some textinvalid 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 │ some text 5 │ some text > 6 │ some text │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 │ some textinvalid 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 │ some text 6 │ some text > 7 │ some textinvalid child │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 │ 9 │ i Unsafe fix: Remove the children and the dangerouslySetInnerHTML prop. 7 │ ····invalid·child │ ------------------------------------------------------------ --- ```