diff --git a/src/compiler/utils/namespaces.ts b/src/compiler/utils/namespaces.ts index 1eb492179b..01d9bd60b3 100644 --- a/src/compiler/utils/namespaces.ts +++ b/src/compiler/utils/namespaces.ts @@ -1,5 +1,5 @@ -// the foreign namespace covers all DOM implementations that aren't html5. It opts out of html5 specific a11y checks -// and case insensitive attribute names +// 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 html = 'http://www.w3.org/1999/xhtml'; export const mathml = 'http://www.w3.org/1998/Math/MathML'; @@ -8,7 +8,6 @@ export const xlink = 'http://www.w3.org/1999/xlink'; export const xml = 'http://www.w3.org/XML/1998/namespace'; export const xmlns = 'http://www.w3.org/2000/xmlns'; - export const valid_namespaces = [ 'foreign', 'html', diff --git a/test/runtime/samples/attribute-casing-foreign-namespace-compiler-option/_config.js b/test/runtime/samples/attribute-casing-foreign-namespace-compiler-option/_config.js index 093710619c..1225c64fc2 100644 --- a/test/runtime/samples/attribute-casing-foreign-namespace-compiler-option/_config.js +++ b/test/runtime/samples/attribute-casing-foreign-namespace-compiler-option/_config.js @@ -1,4 +1,4 @@ -// Test support for the native namespaces preserving attribute case (eg svelte-native, svelte-nodegui). +// Test support for the `foreign` namespace preserving attribute case. export default { html: ` diff --git a/test/runtime/samples/attribute-casing-foreign-namespace/_config.js b/test/runtime/samples/attribute-casing-foreign-namespace/_config.js index 6c61d3c8b3..d7eca6aba9 100644 --- a/test/runtime/samples/attribute-casing-foreign-namespace/_config.js +++ b/test/runtime/samples/attribute-casing-foreign-namespace/_config.js @@ -1,4 +1,4 @@ -// Test support for the native namespaces preserving attribute case (eg svelte-native, svelte-nodegui). +// Test support for the `foreign` namespace preserving attribute case. export default { html: `