diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-11-06 12:56:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 13:56:03 +0100 |
commit | 64e887083aa67047f5ad37b9d55c418274b03ea3 (patch) | |
tree | 3b2b197ae350c6aa97a18ad9da7452269ba042a4 | |
parent | 5088b25f2315fa45e912377356a89ba2a44dbcda (diff) |
fix(fmt): don't use self-closing tags in HTML (#26754)
Closes https://github.com/denoland/deno/issues/26748
-rw-r--r-- | cli/tools/fmt.rs | 2 | ||||
-rw-r--r-- | tests/specs/fmt/html/well_formatted.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index 837883561..f7f8dabc6 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -1032,7 +1032,7 @@ fn get_resolved_markup_fmt_config( max_attrs_per_line: None, prefer_attrs_single_line: false, html_normal_self_closing: None, - html_void_self_closing: Some(true), + html_void_self_closing: None, component_self_closing: None, svg_self_closing: None, mathml_self_closing: None, diff --git a/tests/specs/fmt/html/well_formatted.html b/tests/specs/fmt/html/well_formatted.html index c0c06cd9b..7af705c04 100644 --- a/tests/specs/fmt/html/well_formatted.html +++ b/tests/specs/fmt/html/well_formatted.html @@ -1,4 +1,4 @@ -<div class="container">content</div> +<div class="container">content<br></div> <script> let counter = 0; |