Something went wrong. Try again.
we (web engine): Experimental web browser project to understand the limits of Claude
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829# Regression scenario for isu issue 304: document-level ES module loading.# A `<script type="module">` element must be recognised and executed via the# strict-mode module parser (previously it was skipped because "module" is not# a classic JavaScript MIME type). Module scripts are deferred, so the classic# script runs first even though it appears later in the document. A# `<script type="importmap">` data block must NOT execute as a script, but its# entries must resolve bare specifiers for module imports.viewport 800 600goto_as https://we.test/42_module_script.html crates/e2e/pages/42_module_script.htmldump_dom 42_module_script.dom.txtdump_console 42_module_script.console.txt# Module script ran (its body executed, including code after `export`).assert_dom_contains "module-ran"assert_console_contains "module-script: module-ran"# Classic script still ran.assert_dom_contains "classic-ran"assert_console_contains "classic-script: ran"# Ordering: classic (parser-inserted) runs before the deferred module script.assert_dom_contains "start-classic-module"# Import map: a bare specifier ("greeter") resolves to the mapped data: module# and its exported binding is linked into the importing module.assert_dom_contains "mapped-greeting"assert_console_contains "import-map: mapped-greeting"