swc/crates/swc_html_minifier/tests
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
..
document_fragment feat(html/minifier): Sort attributes (#4784) 2022-07-06 15:50:23 +00:00
fixture fix(html/codegen): Expand elements before which body isn’t elided (#8877) 2024-04-19 12:52:16 +00:00
recovery feat(html/minifier): Improve smart mode (#5004) 2022-06-26 19:08:03 +00:00
fixture.rs feat(html/minifier): Improve smart mode (#5004) 2022-06-26 19:08:03 +00:00