diff --git a/src/compiler/utils/namespaces.ts b/src/compiler/utils/namespaces.ts index 01d9bd60b3..7da64afc8c 100644 --- a/src/compiler/utils/namespaces.ts +++ b/src/compiler/utils/namespaces.ts @@ -1,6 +1,6 @@ // The `foreign` namespace covers all DOM implementations that aren't HTML5. // It opts out of HTML5-specific a11y checks and case-insensitive attribute names. -export const foreign = 'https://svelte.dev/docs#svelte_options'; +export const foreign = 'https://svelte.dev/docs#template-syntax-svelte-options'; export const html = 'http://www.w3.org/1999/xhtml'; export const mathml = 'http://www.w3.org/1998/Math/MathML'; export const svg = 'http://www.w3.org/2000/svg'; diff --git a/test/js/samples/src-attribute-check-in-foreign/expected.js b/test/js/samples/src-attribute-check-in-foreign/expected.js index 3d781b72d4..2eb4c0713c 100644 --- a/test/js/samples/src-attribute-check-in-foreign/expected.js +++ b/test/js/samples/src-attribute-check-in-foreign/expected.js @@ -18,8 +18,8 @@ function create_fragment(ctx) { return { c() { - svg = document.createElementNS("https://svelte.dev/docs#svelte_options", "svg"); - img = document.createElementNS("https://svelte.dev/docs#svelte_options", "img"); + svg = document.createElementNS("https://svelte.dev/docs#template-syntax-svelte-options", "svg"); + img = document.createElementNS("https://svelte.dev/docs#template-syntax-svelte-options", "img"); this.h(); }, l(nodes) {