swc/crates/swc_html_codegen/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/codegen): Improve entity compression (#4889) 2022-06-07 04:33:33 +00:00
fixture fix(html/codegen): Expand elements before which body isn’t elided (#8877) 2024-04-19 12:52:16 +00:00
options feat(html/codegen): Add an option to keep quotes while minifying (#5996) 2022-09-30 05:29:58 +00:00
fixture.rs build(cargo): Update rustc to nightly-2024-04-03 (#8821) 2024-04-16 02:20:47 +00:00