/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/inline-script-classic/page.html
28 строк
595 B
Alexander Akait
feat: support inline `<script>` tags in HTML modules (#20967)
18 май 2026, 21:00
Не верифицирован
18 май 2026, 21:00
526d638
Код
Авторство
О чём код?
<!DOCTYPE html> <html> <head> <title>Inline Script Classic Test</title> <script> var greeting = "hi"; console.log("<b>hello</b>"); </script> <script type="module"> const arr = [1, 2, 3]; const sum = arr.reduce((a, b) => a + b, 0); window.__inlineModuleSum = sum; </script> <script type="text/javascript"> // `<` characters inside JS must NOT be reparsed as HTML var counter = 0; function lt(a, b) { return a < b; } counter++; </script> <!-- Non-JS type stays untouched --> <script type="application/ld+json"> {"@context": "https://schema.org"} </script> </head> <body> <p>Hi</p> </body> </html>