/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/svg-script-href/index.js
13 строк
507 B
Alexander Akait
fix: expand HTML parser tag and attribute coverage (#21159)
11 июн 2026, 12:42
Не верифицирован
11 июн 2026, 12:42
f6e52d0
Код
Авторство
О чём код?
import page from "./page.html"; it("should bundle SVG <script xlink:href> and <script href> as entry chunks", () => { expect(page).not.toContain("./entry.js"); expect(page).not.toContain("./entry2.js"); expect(page).toMatch(/<script xlink:href="__html_[^"]+\.chunk\.js">/); expect(page).toMatch(/<script href="__html_[^"]+\.chunk\.js">/); expect(page).toMatchSnapshot(); }); it("should not inline script content when href is present", () => { expect(page).not.toContain("data:text/javascript"); });