Skip to content

Commit e67cbb7

Browse files
committed
Merge pull request #83 from FranklinWhale/master
Change msElementsFromPoint, msElementsFromRect, getEnclosureList and getIntersectionList to return NodeListOf
2 parents 363eccd + b15d114 commit e67cbb7

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

baselines/dom.generated.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -3182,8 +3182,8 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
31823182
*/
31833183
hasFocus(): boolean;
31843184
importNode(importedNode: Node, deep: boolean): Node;
3185-
msElementsFromPoint(x: number, y: number): NodeList;
3186-
msElementsFromRect(left: number, top: number, width: number, height: number): NodeList;
3185+
msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
3186+
msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf<Element>;
31873187
/**
31883188
* Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
31893189
* @param url Specifies a MIME type for the document.
@@ -10949,8 +10949,8 @@ interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, SVGTest
1094910949
getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
1095010950
getCurrentTime(): number;
1095110951
getElementById(elementId: string): Element;
10952-
getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeList;
10953-
getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeList;
10952+
getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
10953+
getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
1095410954
pauseAnimations(): void;
1095510955
setCurrentTime(seconds: number): void;
1095610956
suspendRedraw(maxWaitMilliseconds: number): number;

inputfiles/overridingTypes.json

+24
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,18 @@
8686
"name": "getElementById",
8787
"signatures": ["getElementById(elementId: string): HTMLElement"]
8888
},
89+
{
90+
"kind": "method",
91+
"interface": "Document",
92+
"name": "msElementsFromRect",
93+
"signatures": ["msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf<Element>"]
94+
},
95+
{
96+
"kind": "method",
97+
"interface": "Document",
98+
"name": "msElementsFromPoint",
99+
"signatures": ["msElementsFromPoint(x: number, y: number): NodeListOf<Element>"]
100+
},
89101
{
90102
"kind": "method",
91103
"interface": "NodeSelector",
@@ -198,6 +210,18 @@
198210
"name": "className",
199211
"type": "any"
200212
},
213+
{
214+
"kind": "method",
215+
"interface": "SVGSVGElement",
216+
"name": "getEnclosureList",
217+
"signatures": ["getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>"]
218+
},
219+
{
220+
"kind": "method",
221+
"interface": "SVGSVGElement",
222+
"name": "getIntersectionList",
223+
"signatures": ["getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>"]
224+
},
201225
{
202226
"kind": "property",
203227
"interface": "Window",

0 commit comments

Comments
 (0)