Skip to content

Commit 0afc2ee

Browse files
committed
move to DOMAttributes
1 parent 050ff23 commit 0afc2ee

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/metal-rivers-laugh.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: move xmlns attribute from SVGAttributes to to DOMAttributes

packages/svelte/elements.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ export interface DOMAttributes<T extends EventTarget> {
463463
'on:fullscreenerror'?: EventHandler<Event, T> | undefined | null;
464464
onfullscreenerror?: EventHandler<Event, T> | undefined | null;
465465
onfullscreenerrorcapture?: EventHandler<Event, T> | undefined | null;
466+
467+
xmlns?: string | undefined | null;
466468
}
467469

468470
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
@@ -773,7 +775,6 @@ export interface HTMLAttributes<T extends EventTarget> extends AriaAttributes, D
773775
inert?: boolean | undefined | null;
774776
popover?: 'auto' | 'manual' | '' | undefined | null;
775777
writingsuggestions?: Booleanish | undefined | null;
776-
xmlns?: string | undefined | null;
777778

778779
// Unknown
779780
radiogroup?: string | undefined | null; // <command>, <menuitem>
@@ -1810,7 +1811,6 @@ export interface SVGAttributes<T extends EventTarget> extends AriaAttributes, DO
18101811
'xlink:type'?: string | undefined | null;
18111812
'xml:base'?: string | undefined | null;
18121813
'xml:lang'?: string | undefined | null;
1813-
xmlns?: string | undefined | null;
18141814
'xmlns:xlink'?: string | undefined | null;
18151815
'xml:space'?: string | undefined | null;
18161816
y1?: number | string | undefined | null;

0 commit comments

Comments
 (0)