swc/crates/swc_html_minifier/tests/fixture
Anders Kaseorg 5419a9477f
fix(html/codegen): Expand elements before which body isn’t elided (#8877)
**Description:**

For example, transforming `<body><noscript>` to `<noscript>` would
incorrectly change the meaning so `<noscript>` is parsed as a child of
`<head>`.

Reference: [§13.2.6.4.4 The "in head" insertion
mode](https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inhead),
[13.2.6.4.6 The "after head" insertion
mode](https://html.spec.whatwg.org/multipage/parsing.html#the-after-head-insertion-mode).

**Related issue:**

- Closes #8876.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2024-04-19 12:52:16 +00:00
..
attribute fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
comment feat(html/minifier): Merge script tags (#6273) 2022-10-28 02:39:10 +00:00
doctype feat(html/minifier): Improve smart mode (#5004) 2022-06-26 19:08:03 +00:00
element fix(es/minifier): Fix top-level check (#8583) 2024-02-02 01:45:41 +00:00
text fix(html/codegen): Expand elements before which body isn’t elided (#8877) 2024-04-19 12:52:16 +00:00