From 75b45eed616fcc29bd73e63dd8df75fa62de065b Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Sun, 12 Aug 2018 11:17:56 +0100 Subject: [PATCH 1/3] Add definitions for DOM pointer events --- lib/dom.js | 48 ++++ tests/bom/bom.exp | 4 +- tests/dom/dom.exp | 516 +++++++++++++++++----------------- tests/new_react/new_react.exp | 4 +- tests/react/react.exp | 28 +- 5 files changed, 324 insertions(+), 276 deletions(-) diff --git a/lib/dom.js b/lib/dom.js index 1fa523ee56d..70952fc70d5 100644 --- a/lib/dom.js +++ b/lib/dom.js @@ -134,6 +134,8 @@ type ProgressEventHandler = (event: ProgressEvent) => mixed type ProgressEventListener = {handleEvent: ProgressEventHandler} | ProgressEventHandler type DragEventHandler = (event: DragEvent) => mixed type DragEventListener = {handleEvent: DragEventHandler} | DragEventHandler +type PointerEventHandler = (event: PointerEvent) => mixed +type PointerEventListener = {handleEvent: PointerEventHandler} | PointerEventHandler type AnimationEventHandler = (event: AnimationEvent) => mixed type AnimationEventListener = {handleEvent: AnimationEventHandler} | AnimationEventHandler type ClipboardEventHandler = (event: ClipboardEvent) => mixed @@ -146,6 +148,7 @@ type TouchEventTypes = 'touchstart' | 'touchmove' | 'touchend' | 'touchcancel'; type WheelEventTypes = 'wheel'; type ProgressEventTypes = 'abort' | 'error' | 'load' | 'loadend' | 'loadstart' | 'progress' | 'timeout'; type DragEventTypes = 'drag' | 'dragend' | 'dragenter' | 'dragexit' | 'dragleave' | 'dragover' | 'dragstart' | 'drop'; +type PointerEventTypes = 'pointerover' | 'pointerenter' | 'pointerdown' | 'pointermove' | 'pointerup' | 'pointercancel' | 'pointerout' | 'pointerleave' | 'gotpointercapture' | 'lostpointercapture'; type AnimationEventTypes = 'animationstart' | 'animationend' | 'animationiteration'; type ClipboardEventTypes = 'clipboardchange' | 'cut' | 'copy' | 'paste'; @@ -163,6 +166,7 @@ declare class EventTarget { addEventListener(type: WheelEventTypes, listener: WheelEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; addEventListener(type: ProgressEventTypes, listener: ProgressEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; addEventListener(type: DragEventTypes, listener: DragEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; + addEventListener(type: PointerEventTypes, listener: PointerEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; addEventListener(type: AnimationEventTypes, listener: AnimationEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; addEventListener(type: ClipboardEventTypes, listener: ClipboardEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; addEventListener(type: string, listener: EventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; @@ -174,6 +178,7 @@ declare class EventTarget { removeEventListener(type: WheelEventTypes, listener: WheelEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; removeEventListener(type: ProgressEventTypes, listener: ProgressEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; removeEventListener(type: DragEventTypes, listener: DragEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; + removeEventListener(type: PointerEventTypes, listener: PointerEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; removeEventListener(type: AnimationEventTypes, listener: AnimationEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; removeEventListener(type: ClipboardEventTypes, listener: ClipboardEventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; removeEventListener(type: string, listener: EventListener, optionsOrUseCapture?: EventListenerOptionsOrUseCapture): void; @@ -185,6 +190,7 @@ declare class EventTarget { attachEvent?: (type: WheelEventTypes, listener: WheelEventListener) => void; attachEvent?: (type: ProgressEventTypes, listener: ProgressEventListener) => void; attachEvent?: (type: DragEventTypes, listener: DragEventListener) => void; + attachEvent?: (type: PointerEventTypes, listener: PointerEventListener) => void; attachEvent?: (type: AnimationEventTypes, listener: AnimationEventListener) => void; attachEvent?: (type: ClipboardEventTypes, listener: ClipboardEventListener) => void; attachEvent?: (type: string, listener: EventListener) => void; @@ -196,6 +202,7 @@ declare class EventTarget { detachEvent?: (type: WheelEventTypes, listener: WheelEventListener) => void; detachEvent?: (type: ProgressEventTypes, listener: ProgressEventListener) => void; detachEvent?: (type: DragEventTypes, listener: DragEventListener) => void; + detachEvent?: (type: PointerEventTypes, listener: PointerEventListener) => void; detachEvent?: (type: AnimationEventTypes, listener: AnimationEventListener) => void; detachEvent?: (type: ClipboardEventTypes, listener: ClipboardEventListener) => void; detachEvent?: (type: string, listener: EventListener) => void; @@ -322,6 +329,37 @@ declare class DragEvent extends MouseEvent { dataTransfer: ?DataTransfer; // readonly } +type PointerEvent$PointerEventInit = MouseEvent$MouseEventInit & { + pointerId?: number; + width?: number; + height?: number; + pressure?: number; + tangentialPressure?: number; + tiltX?: number; + tiltY?: number; + twist?: number; + pointerType?: string; + isPrimary?: boolean; +}; + +declare class PointerEvent extends MouseEvent { + constructor( + typeArg: string, + pointerEventInit?: PointerEvent$PointerEventInit, + ): void; + + pointerId: number; + width: number; + height: number; + pressure: number; + tangentialPressure: number; + tiltX: number; + tiltY: number; + twist: number; + pointerType: string; + isPrimary: boolean; +} + declare class ProgressEvent extends Event { lengthComputable: boolean; loaded: number; @@ -1523,6 +1561,7 @@ declare class HTMLElement extends Element { onended: ?Function; onerror: ?Function; onfocus: ?Function; + ongotpointercapture: ?Function, oninput: ?Function; oninvalid: ?Function; onkeydown: ?Function; @@ -1532,6 +1571,7 @@ declare class HTMLElement extends Element { onloadeddata: ?Function; onloadedmetadata: ?Function; onloadstart: ?Function; + onlostpointercapture: ?Function, onmousedown: ?Function; onmouseenter: ?Function; onmouseleave: ?Function; @@ -1543,6 +1583,14 @@ declare class HTMLElement extends Element { onpause: ?Function; onplay: ?Function; onplaying: ?Function; + onpointercancel: ?Function, + onpointerdown: ?Function, + onpointerenter: ?Function, + onpointerleave: ?Function, + onpointermove: ?Function, + onpointerout: ?Function, + onpointerover: ?Function, + onpointerup: ?Function, onprogress: ?Function; onratechange: ?Function; onreadystatechange: ?Function; diff --git a/tests/bom/bom.exp b/tests/bom/bom.exp index 306aeb9a3f6..d81f018fddc 100644 --- a/tests/bom/bom.exp +++ b/tests/bom/bom.exp @@ -22,8 +22,8 @@ with `HTMLFormElement` [2]. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:617:36 - 617| createElement(tagName: 'input'): HTMLInputElement; + /dom.js:655:36 + 655| createElement(tagName: 'input'): HTMLInputElement; ^^^^^^^^^^^^^^^^ [1] /bom.js:330:24 330| constructor(form?: HTMLFormElement): void; diff --git a/tests/dom/dom.exp b/tests/dom/dom.exp index 465a4f79db8..869021c678f 100644 --- a/tests/dom/dom.exp +++ b/tests/dom/dom.exp @@ -7,8 +7,8 @@ Cannot call `ctx.moveTo` with `'0'` bound to `x` because string [1] is incompati ^^^ [1] References: - /dom.js:1849:13 - 1849| moveTo(x: number, y: number): void; + /dom.js:1897:13 + 1897| moveTo(x: number, y: number): void; ^^^^^^ [2] @@ -21,8 +21,8 @@ Cannot call `ctx.moveTo` with `'1'` bound to `y` because string [1] is incompati ^^^ [1] References: - /dom.js:1849:24 - 1849| moveTo(x: number, y: number): void; + /dom.js:1897:24 + 1897| moveTo(x: number, y: number): void; ^^^^^^ [2] @@ -35,8 +35,8 @@ Cannot call `ClipboardEvent` with `'invalid'` bound to `type` because string [1] ^^^^^^^^^ [1] References: - /dom.js:441:21 - 441| constructor(type: ClipboardEventTypes, eventInit?: ClipboardEvent$Init): void; + /dom.js:479:21 + 479| constructor(type: ClipboardEventTypes, eventInit?: ClipboardEvent$Init): void; ^^^^^^^^^^^^^^^^^^^ [2] @@ -50,11 +50,11 @@ object literal [1] but exists in object type [2]. ^^ [1] References: - /dom.js:436:41 + /dom.js:474:41 v - 436| type ClipboardEvent$Init = Event$Init & { - 437| clipboardData: DataTransfer | null; - 438| }; + 474| type ClipboardEvent$Init = Event$Init & { + 475| clipboardData: DataTransfer | null; + 476| }; ^ [2] @@ -75,8 +75,8 @@ References: 27| const invalid2 = new ClipboardEvent('cut', {clipboardData: { 28| 'text/plain': 'thats not how you do it'}}); // invalid ---------------------------------------^ [1] - /dom.js:437:18 - 437| clipboardData: DataTransfer | null; + /dom.js:475:18 + 475| clipboardData: DataTransfer | null; ^^^^^^^^^^^^ [2] @@ -89,8 +89,8 @@ Cannot call `e.clipboardData.getData` because property `getData` is missing in n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:442:19 - 442| +clipboardData: ?DataTransfer; // readonly + /dom.js:480:19 + 480| +clipboardData: ?DataTransfer; // readonly ^^^^^^^^^^^^^ [1] @@ -107,8 +107,8 @@ References: Element.js:14:40 14| element.scrollIntoView({ behavior: 'invalid' }); ^^^^^^^^^ [1] - /dom.js:1331:49 - 1331| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; + /dom.js:1369:49 + 1369| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2] @@ -125,8 +125,8 @@ References: Element.js:15:37 15| element.scrollIntoView({ block: 'invalid' }); ^^^^^^^^^ [1] - /dom.js:1331:90 - 1331| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; + /dom.js:1369:90 + 1369| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; ^^^^^^^^^^^^^^^ [2] @@ -139,8 +139,8 @@ Cannot call `element.scrollIntoView` with `1` bound to `arg` because number [1] ^ [1] References: - /dom.js:1331:25 - 1331| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; + /dom.js:1369:25 + 1369| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; ^^^^^^^ [2] @@ -157,8 +157,8 @@ References: HTMLElement.js:14:40 14| element.scrollIntoView({ behavior: 'invalid' }); ^^^^^^^^^ [1] - /dom.js:1331:49 - 1331| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; + /dom.js:1369:49 + 1369| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2] @@ -175,8 +175,8 @@ References: HTMLElement.js:15:37 15| element.scrollIntoView({ block: 'invalid' }); ^^^^^^^^^ [1] - /dom.js:1331:90 - 1331| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; + /dom.js:1369:90 + 1369| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; ^^^^^^^^^^^^^^^ [2] @@ -189,8 +189,8 @@ Cannot call `element.scrollIntoView` with `1` bound to `arg` because number [1] ^ [1] References: - /dom.js:1331:25 - 1331| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; + /dom.js:1369:25 + 1369| scrollIntoView(arg?: (boolean | { behavior?: ('auto' | 'instant' | 'smooth'), block?: ('start' | 'end') })): void; ^^^^^^^ [2] @@ -203,8 +203,8 @@ Cannot get `el.className` because property `className` is missing in null [1]. ^^^^^^^^^^^^ References: - /dom.js:2777:43 - 2777| [index: number | string]: HTMLElement | null; + /dom.js:2825:43 + 2825| [index: number | string]: HTMLElement | null; ^^^^ [1] @@ -217,8 +217,8 @@ Cannot get `el.className` because property `className` is missing in null [1]. ^^^^^^^^^^^^ References: - /dom.js:2777:43 - 2777| [index: number | string]: HTMLElement | null; + /dom.js:2825:43 + 2825| [index: number | string]: HTMLElement | null; ^^^^ [1] @@ -234,8 +234,8 @@ References: HTMLInputElement.js:7:28 7| el.setRangeText('foo', 123); // end is required ^^^ [1] - /dom.js:3116:45 - 3116| setRangeText(replacement: string, start?: void, end?: void, selectMode?: void): void; + /dom.js:3164:45 + 3164| setRangeText(replacement: string, start?: void, end?: void, selectMode?: void): void; ^^^^ [2] @@ -251,8 +251,8 @@ References: HTMLInputElement.js:10:38 10| el.setRangeText('foo', 123, 234, 'bogus'); // invalid value ^^^^^^^ [1] - /dom.js:3117:78 - 3117| setRangeText(replacement: string, start: number, end: number, selectMode?: SelectionMode): void; + /dom.js:3165:78 + 3165| setRangeText(replacement: string, start: number, end: number, selectMode?: SelectionMode): void; ^^^^^^^^^^^^^ [2] @@ -265,8 +265,8 @@ Cannot get `form.action` because property `action` is missing in null [1]. ^^^^^^^^^^^ References: - /dom.js:3177:27 - 3177| form: HTMLFormElement | null; + /dom.js:3225:27 + 3225| form: HTMLFormElement | null; ^^^^ [1] @@ -279,8 +279,8 @@ Cannot get `item.value` because property `value` is missing in null [1]. ^^^^^^^^^^ References: - /dom.js:3195:44 - 3195| item(index: number): HTMLOptionElement | null; + /dom.js:3243:44 + 3243| item(index: number): HTMLOptionElement | null; ^^^^ [1] @@ -293,8 +293,8 @@ Cannot get `item.value` because property `value` is missing in null [1]. ^^^^^^^^^^ References: - /dom.js:3196:48 - 3196| namedItem(name: string): HTMLOptionElement | null; + /dom.js:3244:48 + 3244| namedItem(name: string): HTMLOptionElement | null; ^^^^ [1] @@ -321,8 +321,8 @@ Cannot call `target.attachEvent` because undefined [1] is not a function. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:190:17 - 190| attachEvent?: (type: string, listener: EventListener) => void; + /dom.js:196:17 + 196| attachEvent?: (type: string, listener: EventListener) => void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -335,8 +335,8 @@ Cannot call `target.detachEvent` because undefined [1] is not a function. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:201:17 - 201| detachEvent?: (type: string, listener: EventListener) => void; + /dom.js:208:17 + 208| detachEvent?: (type: string, listener: EventListener) => void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -352,8 +352,8 @@ References: path2d.js:9:33 9| (path.arcTo(0, 0, 0, 0, 10, '20', 5): void); // invalid ^^^^ [1] - /dom.js:1714:83 - 1714| arcTo(x1: number, y1: number, x2: number, y2: number, radiusX: number, radiusY: number, rotation: number): void; + /dom.js:1762:83 + 1762| arcTo(x1: number, y1: number, x2: number, y2: number, radiusX: number, radiusY: number, rotation: number): void; ^^^^^^ [2] @@ -380,14 +380,14 @@ References: registerElement.js:52:19 52| oldVal: string, // Error: This might be null ^^^^^^ [1] - /dom.js:555:26 - 555| oldAttributeValue: null, + /dom.js:593:26 + 593| oldAttributeValue: null, ^^^^ [2] registerElement.js:53:19 53| newVal: string, // Error: This might be null ^^^^^^ [3] - /dom.js:570:26 - 570| newAttributeValue: null, + /dom.js:608:26 + 608| newAttributeValue: null, ^^^^ [4] @@ -444,128 +444,128 @@ References: traversal.js:29:33 29| document.createNodeIterator({}); // invalid ^^ [1] - /dom.js:983:33 - 983| createNodeIterator(root: RootNodeT, whatToShow: 2, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1021:33 + 1021| createNodeIterator(root: RootNodeT, whatToShow: 2, filter?: NodeFilterInterface): NodeIterator; ^^^^ [2] - /dom.js:991:33 - 991| createNodeIterator(root: RootNodeT, whatToShow: 256, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1029:33 + 1029| createNodeIterator(root: RootNodeT, whatToShow: 256, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [3] - /dom.js:992:33 - 992| createNodeIterator(root: RootNodeT, whatToShow: 257, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1030:33 + 1030| createNodeIterator(root: RootNodeT, whatToShow: 257, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [4] - /dom.js:993:33 - 993| createNodeIterator(root: RootNodeT, whatToShow: 260, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1031:33 + 1031| createNodeIterator(root: RootNodeT, whatToShow: 260, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [5] - /dom.js:994:33 - 994| createNodeIterator(root: RootNodeT, whatToShow: 261, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1032:33 + 1032| createNodeIterator(root: RootNodeT, whatToShow: 261, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [6] - /dom.js:995:33 - 995| createNodeIterator(root: RootNodeT, whatToShow: 384, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1033:33 + 1033| createNodeIterator(root: RootNodeT, whatToShow: 384, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [7] - /dom.js:996:33 - 996| createNodeIterator(root: RootNodeT, whatToShow: 385, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1034:33 + 1034| createNodeIterator(root: RootNodeT, whatToShow: 385, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [8] - /dom.js:997:33 - 997| createNodeIterator(root: RootNodeT, whatToShow: 388, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1035:33 + 1035| createNodeIterator(root: RootNodeT, whatToShow: 388, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [9] - /dom.js:998:33 - 998| createNodeIterator(root: RootNodeT, whatToShow: 389, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1036:33 + 1036| createNodeIterator(root: RootNodeT, whatToShow: 389, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [10] - /dom.js:999:33 - 999| createNodeIterator(root: RootNodeT, whatToShow: 512, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1037:33 + 1037| createNodeIterator(root: RootNodeT, whatToShow: 512, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [11] - /dom.js:1000:33 - 1000| createNodeIterator(root: RootNodeT, whatToShow: 513, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1038:33 + 1038| createNodeIterator(root: RootNodeT, whatToShow: 513, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [12] - /dom.js:1001:33 - 1001| createNodeIterator(root: RootNodeT, whatToShow: 516, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1039:33 + 1039| createNodeIterator(root: RootNodeT, whatToShow: 516, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [13] - /dom.js:1002:33 - 1002| createNodeIterator(root: RootNodeT, whatToShow: 517, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1040:33 + 1040| createNodeIterator(root: RootNodeT, whatToShow: 517, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [14] - /dom.js:1003:33 - 1003| createNodeIterator(root: RootNodeT, whatToShow: 640, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1041:33 + 1041| createNodeIterator(root: RootNodeT, whatToShow: 640, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [15] - /dom.js:1004:33 - 1004| createNodeIterator(root: RootNodeT, whatToShow: 641, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1042:33 + 1042| createNodeIterator(root: RootNodeT, whatToShow: 641, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [16] - /dom.js:1005:33 - 1005| createNodeIterator(root: RootNodeT, whatToShow: 644, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1043:33 + 1043| createNodeIterator(root: RootNodeT, whatToShow: 644, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [17] - /dom.js:1006:33 - 1006| createNodeIterator(root: RootNodeT, whatToShow: 645, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1044:33 + 1044| createNodeIterator(root: RootNodeT, whatToShow: 645, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [18] - /dom.js:1007:33 - 1007| createNodeIterator(root: RootNodeT, whatToShow: 768, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1045:33 + 1045| createNodeIterator(root: RootNodeT, whatToShow: 768, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [19] - /dom.js:1008:33 - 1008| createNodeIterator(root: RootNodeT, whatToShow: 769, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1046:33 + 1046| createNodeIterator(root: RootNodeT, whatToShow: 769, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [20] - /dom.js:1009:33 - 1009| createNodeIterator(root: RootNodeT, whatToShow: 772, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1047:33 + 1047| createNodeIterator(root: RootNodeT, whatToShow: 772, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [21] - /dom.js:1010:33 - 1010| createNodeIterator(root: RootNodeT, whatToShow: 773, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1048:33 + 1048| createNodeIterator(root: RootNodeT, whatToShow: 773, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [22] - /dom.js:1011:33 - 1011| createNodeIterator(root: RootNodeT, whatToShow: 896, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1049:33 + 1049| createNodeIterator(root: RootNodeT, whatToShow: 896, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [23] - /dom.js:1012:33 - 1012| createNodeIterator(root: RootNodeT, whatToShow: 897, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1050:33 + 1050| createNodeIterator(root: RootNodeT, whatToShow: 897, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [24] - /dom.js:1013:33 - 1013| createNodeIterator(root: RootNodeT, whatToShow: 900, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1051:33 + 1051| createNodeIterator(root: RootNodeT, whatToShow: 900, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [25] - /dom.js:1014:33 - 1014| createNodeIterator(root: RootNodeT, whatToShow: 901, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1052:33 + 1052| createNodeIterator(root: RootNodeT, whatToShow: 901, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^ [26] - /dom.js:1042:33 - 1042| createNodeIterator(root: RootNodeT, whatToShow: 1024, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1080:33 + 1080| createNodeIterator(root: RootNodeT, whatToShow: 1024, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^^^^^^^^^ [27] - /dom.js:1043:33 - 1043| createNodeIterator(root: RootNodeT, whatToShow: 1025, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1081:33 + 1081| createNodeIterator(root: RootNodeT, whatToShow: 1025, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^^^^^^^^^ [28] - /dom.js:1044:33 - 1044| createNodeIterator(root: RootNodeT, whatToShow: 1028, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1082:33 + 1082| createNodeIterator(root: RootNodeT, whatToShow: 1028, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^^^^^^^^^ [29] - /dom.js:1045:33 - 1045| createNodeIterator(root: RootNodeT, whatToShow: 1029, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1083:33 + 1083| createNodeIterator(root: RootNodeT, whatToShow: 1029, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^^^^^^^^^ [30] - /dom.js:1046:33 - 1046| createNodeIterator(root: RootNodeT, whatToShow: 1152, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1084:33 + 1084| createNodeIterator(root: RootNodeT, whatToShow: 1152, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^^^^^^^^^ [31] - /dom.js:1047:33 - 1047| createNodeIterator(root: RootNodeT, whatToShow: 1153, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1085:33 + 1085| createNodeIterator(root: RootNodeT, whatToShow: 1153, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^^^^^^^^^ [32] - /dom.js:1048:33 - 1048| createNodeIterator(root: RootNodeT, whatToShow: 1156, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1086:33 + 1086| createNodeIterator(root: RootNodeT, whatToShow: 1156, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^^^^^^^^^ [33] - /dom.js:1049:33 - 1049| createNodeIterator(root: RootNodeT, whatToShow: 1157, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1087:33 + 1087| createNodeIterator(root: RootNodeT, whatToShow: 1157, filter?: NodeFilterInterface): NodeIterator; ^^^^^^^^^^^^^^^^ [34] - /dom.js:1062:33 - 1062| createNodeIterator(root: RootNodeT, whatToShow: 1, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1100:33 + 1100| createNodeIterator(root: RootNodeT, whatToShow: 1, filter?: NodeFilterInterface): NodeIterator; ^^^^ [35] - /dom.js:1063:33 - 1063| createNodeIterator(root: RootNodeT, whatToShow: 4, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1101:33 + 1101| createNodeIterator(root: RootNodeT, whatToShow: 4, filter?: NodeFilterInterface): NodeIterator; ^^^^ [36] - /dom.js:1064:33 - 1064| createNodeIterator(root: RootNodeT, whatToShow: 5, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1102:33 + 1102| createNodeIterator(root: RootNodeT, whatToShow: 5, filter?: NodeFilterInterface): NodeIterator; ^^^^ [37] - /dom.js:1065:33 - 1065| createNodeIterator(root: RootNodeT, whatToShow: 128, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1103:33 + 1103| createNodeIterator(root: RootNodeT, whatToShow: 128, filter?: NodeFilterInterface): NodeIterator; ^^^^ [38] - /dom.js:1066:33 - 1066| createNodeIterator(root: RootNodeT, whatToShow: 129, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1104:33 + 1104| createNodeIterator(root: RootNodeT, whatToShow: 129, filter?: NodeFilterInterface): NodeIterator; ^^^^ [39] - /dom.js:1067:33 - 1067| createNodeIterator(root: RootNodeT, whatToShow: 132, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1105:33 + 1105| createNodeIterator(root: RootNodeT, whatToShow: 132, filter?: NodeFilterInterface): NodeIterator; ^^^^ [40] - /dom.js:1068:33 - 1068| createNodeIterator(root: RootNodeT, whatToShow: 133, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1106:33 + 1106| createNodeIterator(root: RootNodeT, whatToShow: 133, filter?: NodeFilterInterface): NodeIterator; ^^^^ [41] - /dom.js:1079:33 - 1079| createNodeIterator(root: RootNodeT, whatToShow?: number, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1117:33 + 1117| createNodeIterator(root: RootNodeT, whatToShow?: number, filter?: NodeFilterInterface): NodeIterator; ^^^^ [42] @@ -622,128 +622,128 @@ References: traversal.js:33:31 33| document.createTreeWalker({}); // invalid ^^ [1] - /dom.js:984:31 - 984| createTreeWalker(root: RootNodeT, whatToShow: 2, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1022:31 + 1022| createTreeWalker(root: RootNodeT, whatToShow: 2, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^ [2] - /dom.js:1015:31 - 1015| createTreeWalker(root: RootNodeT, whatToShow: 256, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1053:31 + 1053| createTreeWalker(root: RootNodeT, whatToShow: 256, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [3] - /dom.js:1016:31 - 1016| createTreeWalker(root: RootNodeT, whatToShow: 257, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1054:31 + 1054| createTreeWalker(root: RootNodeT, whatToShow: 257, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [4] - /dom.js:1017:31 - 1017| createTreeWalker(root: RootNodeT, whatToShow: 260, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1055:31 + 1055| createTreeWalker(root: RootNodeT, whatToShow: 260, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [5] - /dom.js:1018:31 - 1018| createTreeWalker(root: RootNodeT, whatToShow: 261, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1056:31 + 1056| createTreeWalker(root: RootNodeT, whatToShow: 261, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [6] - /dom.js:1019:31 - 1019| createTreeWalker(root: RootNodeT, whatToShow: 384, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1057:31 + 1057| createTreeWalker(root: RootNodeT, whatToShow: 384, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [7] - /dom.js:1020:31 - 1020| createTreeWalker(root: RootNodeT, whatToShow: 385, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1058:31 + 1058| createTreeWalker(root: RootNodeT, whatToShow: 385, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [8] - /dom.js:1021:31 - 1021| createTreeWalker(root: RootNodeT, whatToShow: 388, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1059:31 + 1059| createTreeWalker(root: RootNodeT, whatToShow: 388, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [9] - /dom.js:1022:31 - 1022| createTreeWalker(root: RootNodeT, whatToShow: 389, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1060:31 + 1060| createTreeWalker(root: RootNodeT, whatToShow: 389, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [10] - /dom.js:1023:31 - 1023| createTreeWalker(root: RootNodeT, whatToShow: 512, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1061:31 + 1061| createTreeWalker(root: RootNodeT, whatToShow: 512, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [11] - /dom.js:1024:31 - 1024| createTreeWalker(root: RootNodeT, whatToShow: 513, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1062:31 + 1062| createTreeWalker(root: RootNodeT, whatToShow: 513, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [12] - /dom.js:1025:31 - 1025| createTreeWalker(root: RootNodeT, whatToShow: 516, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1063:31 + 1063| createTreeWalker(root: RootNodeT, whatToShow: 516, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [13] - /dom.js:1026:31 - 1026| createTreeWalker(root: RootNodeT, whatToShow: 517, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1064:31 + 1064| createTreeWalker(root: RootNodeT, whatToShow: 517, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [14] - /dom.js:1027:31 - 1027| createTreeWalker(root: RootNodeT, whatToShow: 640, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1065:31 + 1065| createTreeWalker(root: RootNodeT, whatToShow: 640, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [15] - /dom.js:1028:31 - 1028| createTreeWalker(root: RootNodeT, whatToShow: 641, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1066:31 + 1066| createTreeWalker(root: RootNodeT, whatToShow: 641, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [16] - /dom.js:1029:31 - 1029| createTreeWalker(root: RootNodeT, whatToShow: 644, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1067:31 + 1067| createTreeWalker(root: RootNodeT, whatToShow: 644, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [17] - /dom.js:1030:31 - 1030| createTreeWalker(root: RootNodeT, whatToShow: 645, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1068:31 + 1068| createTreeWalker(root: RootNodeT, whatToShow: 645, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [18] - /dom.js:1031:31 - 1031| createTreeWalker(root: RootNodeT, whatToShow: 768, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1069:31 + 1069| createTreeWalker(root: RootNodeT, whatToShow: 768, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [19] - /dom.js:1032:31 - 1032| createTreeWalker(root: RootNodeT, whatToShow: 769, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1070:31 + 1070| createTreeWalker(root: RootNodeT, whatToShow: 769, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [20] - /dom.js:1033:31 - 1033| createTreeWalker(root: RootNodeT, whatToShow: 772, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1071:31 + 1071| createTreeWalker(root: RootNodeT, whatToShow: 772, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [21] - /dom.js:1034:31 - 1034| createTreeWalker(root: RootNodeT, whatToShow: 773, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1072:31 + 1072| createTreeWalker(root: RootNodeT, whatToShow: 773, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [22] - /dom.js:1035:31 - 1035| createTreeWalker(root: RootNodeT, whatToShow: 896, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1073:31 + 1073| createTreeWalker(root: RootNodeT, whatToShow: 896, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [23] - /dom.js:1036:31 - 1036| createTreeWalker(root: RootNodeT, whatToShow: 897, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1074:31 + 1074| createTreeWalker(root: RootNodeT, whatToShow: 897, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [24] - /dom.js:1037:31 - 1037| createTreeWalker(root: RootNodeT, whatToShow: 900, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1075:31 + 1075| createTreeWalker(root: RootNodeT, whatToShow: 900, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [25] - /dom.js:1038:31 - 1038| createTreeWalker(root: RootNodeT, whatToShow: 901, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1076:31 + 1076| createTreeWalker(root: RootNodeT, whatToShow: 901, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^ [26] - /dom.js:1050:31 - 1050| createTreeWalker(root: RootNodeT, whatToShow: 1024, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1088:31 + 1088| createTreeWalker(root: RootNodeT, whatToShow: 1024, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^^^^^^^^^ [27] - /dom.js:1051:31 - 1051| createTreeWalker(root: RootNodeT, whatToShow: 1025, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1089:31 + 1089| createTreeWalker(root: RootNodeT, whatToShow: 1025, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^^^^^^^^^ [28] - /dom.js:1052:31 - 1052| createTreeWalker(root: RootNodeT, whatToShow: 1028, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1090:31 + 1090| createTreeWalker(root: RootNodeT, whatToShow: 1028, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^^^^^^^^^ [29] - /dom.js:1053:31 - 1053| createTreeWalker(root: RootNodeT, whatToShow: 1029, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1091:31 + 1091| createTreeWalker(root: RootNodeT, whatToShow: 1029, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^^^^^^^^^ [30] - /dom.js:1054:31 - 1054| createTreeWalker(root: RootNodeT, whatToShow: 1152, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1092:31 + 1092| createTreeWalker(root: RootNodeT, whatToShow: 1152, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^^^^^^^^^ [31] - /dom.js:1055:31 - 1055| createTreeWalker(root: RootNodeT, whatToShow: 1153, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1093:31 + 1093| createTreeWalker(root: RootNodeT, whatToShow: 1153, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^^^^^^^^^ [32] - /dom.js:1056:31 - 1056| createTreeWalker(root: RootNodeT, whatToShow: 1156, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1094:31 + 1094| createTreeWalker(root: RootNodeT, whatToShow: 1156, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^^^^^^^^^ [33] - /dom.js:1057:31 - 1057| createTreeWalker(root: RootNodeT, whatToShow: 1157, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1095:31 + 1095| createTreeWalker(root: RootNodeT, whatToShow: 1157, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^^^^^^^^^^^^^ [34] - /dom.js:1069:31 - 1069| createTreeWalker(root: RootNodeT, whatToShow: 1, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1107:31 + 1107| createTreeWalker(root: RootNodeT, whatToShow: 1, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^ [35] - /dom.js:1070:31 - 1070| createTreeWalker(root: RootNodeT, whatToShow: 4, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1108:31 + 1108| createTreeWalker(root: RootNodeT, whatToShow: 4, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^ [36] - /dom.js:1071:31 - 1071| createTreeWalker(root: RootNodeT, whatToShow: 5, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1109:31 + 1109| createTreeWalker(root: RootNodeT, whatToShow: 5, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^ [37] - /dom.js:1072:31 - 1072| createTreeWalker(root: RootNodeT, whatToShow: 128, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1110:31 + 1110| createTreeWalker(root: RootNodeT, whatToShow: 128, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^ [38] - /dom.js:1073:31 - 1073| createTreeWalker(root: RootNodeT, whatToShow: 129, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1111:31 + 1111| createTreeWalker(root: RootNodeT, whatToShow: 129, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^ [39] - /dom.js:1074:31 - 1074| createTreeWalker(root: RootNodeT, whatToShow: 132, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1112:31 + 1112| createTreeWalker(root: RootNodeT, whatToShow: 132, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^ [40] - /dom.js:1075:31 - 1075| createTreeWalker(root: RootNodeT, whatToShow: 133, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1113:31 + 1113| createTreeWalker(root: RootNodeT, whatToShow: 133, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^ [41] - /dom.js:1080:31 - 1080| createTreeWalker(root: RootNodeT, whatToShow?: number, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1118:31 + 1118| createTreeWalker(root: RootNodeT, whatToShow?: number, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^^ [42] @@ -760,11 +760,11 @@ References: traversal.js:186:60 186| document.createNodeIterator(document_body, -1, node => 'accept'); // invalid ^^^^^^^^ [1] - /dom.js:3659:1 + /dom.js:3707:1 v-------------------------------- - 3659| typeof NodeFilter.FILTER_ACCEPT | - 3660| typeof NodeFilter.FILTER_REJECT | - 3661| typeof NodeFilter.FILTER_SKIP; + 3707| typeof NodeFilter.FILTER_ACCEPT | + 3708| typeof NodeFilter.FILTER_REJECT | + 3709| typeof NodeFilter.FILTER_SKIP; ----------------------------^ [2] @@ -781,11 +781,11 @@ References: traversal.js:188:74 188| document.createNodeIterator(document_body, -1, { acceptNode: node => 'accept' }); // invalid ^^^^^^^^ [1] - /dom.js:3659:1 + /dom.js:3707:1 v-------------------------------- - 3659| typeof NodeFilter.FILTER_ACCEPT | - 3660| typeof NodeFilter.FILTER_REJECT | - 3661| typeof NodeFilter.FILTER_SKIP; + 3707| typeof NodeFilter.FILTER_ACCEPT | + 3708| typeof NodeFilter.FILTER_REJECT | + 3709| typeof NodeFilter.FILTER_SKIP; ----------------------------^ [2] @@ -808,26 +808,26 @@ References: traversal.js:189:48 189| document.createNodeIterator(document_body, -1, {}); // invalid ^^ [1] - /dom.js:1062:68 - 1062| createNodeIterator(root: RootNodeT, whatToShow: 1, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1100:68 + 1100| createNodeIterator(root: RootNodeT, whatToShow: 1, filter?: NodeFilterInterface): NodeIterator; ^ [2] - /dom.js:1063:68 - 1063| createNodeIterator(root: RootNodeT, whatToShow: 4, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1101:68 + 1101| createNodeIterator(root: RootNodeT, whatToShow: 4, filter?: NodeFilterInterface): NodeIterator; ^ [3] - /dom.js:1064:68 - 1064| createNodeIterator(root: RootNodeT, whatToShow: 5, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1102:68 + 1102| createNodeIterator(root: RootNodeT, whatToShow: 5, filter?: NodeFilterInterface): NodeIterator; ^ [4] - /dom.js:1065:68 - 1065| createNodeIterator(root: RootNodeT, whatToShow: 128, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1103:68 + 1103| createNodeIterator(root: RootNodeT, whatToShow: 128, filter?: NodeFilterInterface): NodeIterator; ^^^ [5] - /dom.js:1066:68 - 1066| createNodeIterator(root: RootNodeT, whatToShow: 129, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1104:68 + 1104| createNodeIterator(root: RootNodeT, whatToShow: 129, filter?: NodeFilterInterface): NodeIterator; ^^^ [6] - /dom.js:1067:68 - 1067| createNodeIterator(root: RootNodeT, whatToShow: 132, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1105:68 + 1105| createNodeIterator(root: RootNodeT, whatToShow: 132, filter?: NodeFilterInterface): NodeIterator; ^^^ [7] - /dom.js:1068:68 - 1068| createNodeIterator(root: RootNodeT, whatToShow: 133, filter?: NodeFilterInterface): NodeIterator; + /dom.js:1106:68 + 1106| createNodeIterator(root: RootNodeT, whatToShow: 133, filter?: NodeFilterInterface): NodeIterator; ^^^ [8] @@ -844,11 +844,11 @@ References: traversal.js:193:58 193| document.createTreeWalker(document_body, -1, node => 'accept'); // invalid ^^^^^^^^ [1] - /dom.js:3659:1 + /dom.js:3707:1 v-------------------------------- - 3659| typeof NodeFilter.FILTER_ACCEPT | - 3660| typeof NodeFilter.FILTER_REJECT | - 3661| typeof NodeFilter.FILTER_SKIP; + 3707| typeof NodeFilter.FILTER_ACCEPT | + 3708| typeof NodeFilter.FILTER_REJECT | + 3709| typeof NodeFilter.FILTER_SKIP; ----------------------------^ [2] @@ -865,11 +865,11 @@ References: traversal.js:195:72 195| document.createTreeWalker(document_body, -1, { acceptNode: node => 'accept' }); // invalid ^^^^^^^^ [1] - /dom.js:3659:1 + /dom.js:3707:1 v-------------------------------- - 3659| typeof NodeFilter.FILTER_ACCEPT | - 3660| typeof NodeFilter.FILTER_REJECT | - 3661| typeof NodeFilter.FILTER_SKIP; + 3707| typeof NodeFilter.FILTER_ACCEPT | + 3708| typeof NodeFilter.FILTER_REJECT | + 3709| typeof NodeFilter.FILTER_SKIP; ----------------------------^ [2] @@ -892,26 +892,26 @@ References: traversal.js:196:46 196| document.createTreeWalker(document_body, -1, {}); // invalid ^^ [1] - /dom.js:1069:66 - 1069| createTreeWalker(root: RootNodeT, whatToShow: 1, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1107:66 + 1107| createTreeWalker(root: RootNodeT, whatToShow: 1, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^ [2] - /dom.js:1070:66 - 1070| createTreeWalker(root: RootNodeT, whatToShow: 4, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1108:66 + 1108| createTreeWalker(root: RootNodeT, whatToShow: 4, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^ [3] - /dom.js:1071:66 - 1071| createTreeWalker(root: RootNodeT, whatToShow: 5, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1109:66 + 1109| createTreeWalker(root: RootNodeT, whatToShow: 5, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^ [4] - /dom.js:1072:66 - 1072| createTreeWalker(root: RootNodeT, whatToShow: 128, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1110:66 + 1110| createTreeWalker(root: RootNodeT, whatToShow: 128, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^ [5] - /dom.js:1073:66 - 1073| createTreeWalker(root: RootNodeT, whatToShow: 129, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1111:66 + 1111| createTreeWalker(root: RootNodeT, whatToShow: 129, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^ [6] - /dom.js:1074:66 - 1074| createTreeWalker(root: RootNodeT, whatToShow: 132, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1112:66 + 1112| createTreeWalker(root: RootNodeT, whatToShow: 132, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^ [7] - /dom.js:1075:66 - 1075| createTreeWalker(root: RootNodeT, whatToShow: 133, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; + /dom.js:1113:66 + 1113| createTreeWalker(root: RootNodeT, whatToShow: 133, filter?: NodeFilterInterface, entityReferenceExpansion?: boolean): TreeWalker; ^^^ [8] diff --git a/tests/new_react/new_react.exp b/tests/new_react/new_react.exp index 0e64ac174ea..df3b62fb9fc 100644 --- a/tests/new_react/new_react.exp +++ b/tests/new_react/new_react.exp @@ -750,8 +750,8 @@ Cannot call `ReactDOM.render` with `document.body` bound to `container` because ^^^^^^^^^^^^^ References: - /dom.js:582:27 - 582| body: HTMLBodyElement | null; + /dom.js:620:27 + 620| body: HTMLBodyElement | null; ^^^^ [1] /react-dom.js:18:16 18| container: Element, diff --git a/tests/react/react.exp b/tests/react/react.exp index ff7632e9607..77e35e4827a 100644 --- a/tests/react/react.exp +++ b/tests/react/react.exp @@ -1904,8 +1904,8 @@ incompatible with `Element` [2]. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:664:52 - 664| getElementById(elementId: string): HTMLElement | null; + /dom.js:702:52 + 702| getElementById(elementId: string): HTMLElement | null; ^^^^ [1] /react-dom.js:30:16 30| container: Element, @@ -2831,8 +2831,8 @@ with `Element` [2]. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:902:50 - 902| querySelector(selector: string): HTMLElement | null; + /dom.js:940:50 + 940| querySelector(selector: string): HTMLElement | null; ^^^^ [1] /react-dom.js:18:16 18| container: Element, @@ -2849,8 +2849,8 @@ with `Element` [2]. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:902:50 - 902| querySelector(selector: string): HTMLElement | null; + /dom.js:940:50 + 940| querySelector(selector: string): HTMLElement | null; ^^^^ [1] /react-dom.js:18:16 18| container: Element, @@ -2867,8 +2867,8 @@ with `Element` [2]. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:902:50 - 902| querySelector(selector: string): HTMLElement | null; + /dom.js:940:50 + 940| querySelector(selector: string): HTMLElement | null; ^^^^ [1] /react-dom.js:18:16 18| container: Element, @@ -2899,8 +2899,8 @@ with `Element` [2]. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:902:50 - 902| querySelector(selector: string): HTMLElement | null; + /dom.js:940:50 + 940| querySelector(selector: string): HTMLElement | null; ^^^^ [1] /react-dom.js:18:16 18| container: Element, @@ -2932,8 +2932,8 @@ with `Element` [2]. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:902:50 - 902| querySelector(selector: string): HTMLElement | null; + /dom.js:940:50 + 940| querySelector(selector: string): HTMLElement | null; ^^^^ [1] /react-dom.js:18:16 18| container: Element, @@ -2965,8 +2965,8 @@ with `Element` [2]. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /dom.js:902:50 - 902| querySelector(selector: string): HTMLElement | null; + /dom.js:940:50 + 940| querySelector(selector: string): HTMLElement | null; ^^^^ [1] /react-dom.js:18:16 18| container: Element, From 4e8408ac344d9cb7e4fc29f02b610c44d4a69081 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Sun, 12 Aug 2018 11:26:58 +0100 Subject: [PATCH 2/3] Add definition for React DOM SyntheticPointerEvent This is based on https://github.com/facebook/react/pull/12507 which is seemingly missing a couple of fields from the official spec. Consequently this will need an update once React supports all fields. --- lib/react-dom.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/react-dom.js b/lib/react-dom.js index 1a417a4436e..e2bb0ddb3eb 100644 --- a/lib/react-dom.js +++ b/lib/react-dom.js @@ -224,6 +224,19 @@ declare class SyntheticWheelEvent< deltaZ: number; } +declare class SyntheticPointerEvent< + +T: EventTarget = EventTarget, +> extends SyntheticMouseEvent { + pointerId: number; + width: number; + height: number; + pressure: number; + tiltX: number; + tiltY: number; + pointerType: string; + isPrimary: boolean; +} + declare class SyntheticTouchEvent< +T: EventTarget = EventTarget, > extends SyntheticUIEvent { From 5c63180e06aa02a104b417a0c727dacdf49df06e Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Sun, 12 Aug 2018 14:26:29 +0100 Subject: [PATCH 3/3] Add tangentialPressure and twist fields to SyntheticPointerEvent https://github.com/facebook/react/pull/13374 has been merged so the next React DOM release will have these fields. --- lib/react-dom.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/react-dom.js b/lib/react-dom.js index e2bb0ddb3eb..8d76dc2b319 100644 --- a/lib/react-dom.js +++ b/lib/react-dom.js @@ -231,8 +231,10 @@ declare class SyntheticPointerEvent< width: number; height: number; pressure: number; + tangentialPressure: number; tiltX: number; tiltY: number; + twist: number; pointerType: string; isPrimary: boolean; }