From 223b328db4fc083e683fb4436324d5998eef1208 Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Thu, 21 Dec 2023 22:06:41 -0600 Subject: [PATCH 1/3] Expand defaultAssetUrlOptions Expand defaultAssetUrlOptions to include other asset-linking html attributes --- packages/compiler-sfc/src/template/transformAssetUrl.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/compiler-sfc/src/template/transformAssetUrl.ts b/packages/compiler-sfc/src/template/transformAssetUrl.ts index 4267d4ea352..ed5af9d2232 100644 --- a/packages/compiler-sfc/src/template/transformAssetUrl.ts +++ b/packages/compiler-sfc/src/template/transformAssetUrl.ts @@ -42,7 +42,13 @@ export const defaultAssetUrlOptions: Required = { source: ['src'], img: ['src'], image: ['xlink:href', 'href'], - use: ['xlink:href', 'href'] + use: ['xlink:href', 'href'], + audio: ['src'], + object: ['data'], + embed: ['src'], + track: ['src'], + link: ['href'], + iframe: ['src'] } } From 9d99a3d96af16900ec015078f292766f72a08e17 Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Tue, 13 Feb 2024 13:01:56 -0600 Subject: [PATCH 2/3] Remove iframe src from asset url attributes --- packages/compiler-sfc/src/template/transformAssetUrl.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/compiler-sfc/src/template/transformAssetUrl.ts b/packages/compiler-sfc/src/template/transformAssetUrl.ts index ed5af9d2232..e9fa5929862 100644 --- a/packages/compiler-sfc/src/template/transformAssetUrl.ts +++ b/packages/compiler-sfc/src/template/transformAssetUrl.ts @@ -48,7 +48,6 @@ export const defaultAssetUrlOptions: Required = { embed: ['src'], track: ['src'], link: ['href'], - iframe: ['src'] } } From aef82f4e27990f2a16a67e91a53a94277f2e1751 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 19:04:01 +0000 Subject: [PATCH 3/3] [autofix.ci] apply automated fixes --- packages/compiler-sfc/src/template/transformAssetUrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-sfc/src/template/transformAssetUrl.ts b/packages/compiler-sfc/src/template/transformAssetUrl.ts index 3220efc3087..46f2919aef1 100644 --- a/packages/compiler-sfc/src/template/transformAssetUrl.ts +++ b/packages/compiler-sfc/src/template/transformAssetUrl.ts @@ -48,7 +48,7 @@ export const defaultAssetUrlOptions: Required = { embed: ['src'], track: ['src'], link: ['href'], - } + }, } export const normalizeOptions = (