diff --git a/.changeset/nervous-peaches-sort.md b/.changeset/nervous-peaches-sort.md new file mode 100644 index 000000000000..337de234cb4b --- /dev/null +++ b/.changeset/nervous-peaches-sort.md @@ -0,0 +1,7 @@ +--- +'astro': patch +--- + +Ensure we target scripts for execution in the router + +Using `document.scripts` is unsafe because if the application has a `name="scripts"` this will shadow the built-in `document.scripts`. Fix is to use `getElementsByTagName` to ensure we're only grabbing real scripts. diff --git a/packages/astro/e2e/fixtures/view-transitions/src/assets/astro-build.mp4 b/packages/astro/e2e/fixtures/view-transitions/src/assets/astro-build.mp4 new file mode 100644 index 000000000000..38e55d8c0a1f Binary files /dev/null and b/packages/astro/e2e/fixtures/view-transitions/src/assets/astro-build.mp4 differ diff --git a/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro b/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro index 0a3a229134d1..936e25ceb046 100644 --- a/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro +++ b/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro @@ -1,3 +1,6 @@ -