diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index ce55651bd..88d85ab15 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -5683,7 +5683,7 @@ declare var CharacterData: { new(): CharacterData; }; -interface ChildNode extends Node { +interface ChildNode { /** * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. * @@ -15817,13 +15817,13 @@ interface Node extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes) */ - readonly childNodes: NodeListOf; + readonly childNodes: NodeListOf; /** * Returns the first child. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild) */ - readonly firstChild: ChildNode | null; + readonly firstChild: (Node & ChildNode) | null; /** * Returns true if node is connected and false otherwise. * @@ -15835,13 +15835,13 @@ interface Node extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild) */ - readonly lastChild: ChildNode | null; + readonly lastChild: (Node & ChildNode) | null; /** * Returns the next sibling. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) */ - readonly nextSibling: ChildNode | null; + readonly nextSibling: (Node & ChildNode) | null; /** * Returns a string appropriate for the type of node. * @@ -15873,13 +15873,13 @@ interface Node extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode) */ - readonly parentNode: ParentNode | null; + readonly parentNode: (Node & ParentNode) | null; /** * Returns the previous sibling. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) */ - readonly previousSibling: ChildNode | null; + readonly previousSibling: (Node & ChildNode) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) */ textContent: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild) */ @@ -16502,7 +16502,7 @@ declare var PannerNode: { new(context: BaseAudioContext, options?: PannerOptions): PannerNode; }; -interface ParentNode extends Node { +interface ParentNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) */ readonly childElementCount: number; /** @@ -20413,7 +20413,7 @@ declare var SVGSwitchElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSymbolElement) */ -interface SVGSymbolElement extends SVGElement, SVGFitToViewBox { +interface SVGSymbolElement extends SVGGraphicsElement, SVGFitToViewBox { addEventListener(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index b18dc06e1..92b2da760 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -1,12 +1,6 @@ { "mixins": { "mixin": { - "ChildNode": { - "extends": "Node" - }, - "ParentNode": { - "extends": "Node" - }, "Animatable": { "methods": { "method": { @@ -902,25 +896,25 @@ "properties": { "property": { "parentNode": { - "overrideType": "ParentNode" + "overrideType": "Node & ParentNode" }, "parentElement": { "overrideType": "HTMLElement" }, "childNodes": { - "overrideType": "NodeListOf" + "overrideType": "NodeListOf" }, "firstChild": { - "overrideType": "ChildNode" + "overrideType": "Node & ChildNode" }, "lastChild": { - "overrideType": "ChildNode" + "overrideType": "Node & ChildNode" }, "nextSibling": { - "overrideType": "ChildNode" + "overrideType": "Node & ChildNode" }, "previousSibling": { - "overrideType": "ChildNode" + "overrideType": "Node & ChildNode" } } } @@ -1268,9 +1262,6 @@ } } }, - "SVGSymbolElement": { - "extends": "SVGElement" - }, "FormData": { "methods": { "method": {