Skip to content

Commit 7af05a3

Browse files
badeballsandersn
authored andcommitted
Allow null for XPathResult.singleNodeValue (#662)
From the specification [1]: > The value of this single node result, which may be null. [1] https://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult
1 parent 8a6869c commit 7af05a3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

baselines/dom.generated.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17423,7 +17423,7 @@ interface XPathResult {
1742317423
readonly invalidIteratorState: boolean;
1742417424
readonly numberValue: number;
1742517425
readonly resultType: number;
17426-
readonly singleNodeValue: Node;
17426+
readonly singleNodeValue: Node | null;
1742717427
readonly snapshotLength: number;
1742817428
readonly stringValue: string;
1742917429
iterateNext(): Node;

inputfiles/browser.webidl.preprocessed.json

+1
Original file line numberDiff line numberDiff line change
@@ -11322,6 +11322,7 @@
1132211322
"specs": "dom-level-3-xpath",
1132311323
"exposed": "Window",
1132411324
"name": "singleNodeValue",
11325+
"nullable": 1,
1132511326
"type": "Node",
1132611327
"type-original": "Node",
1132711328
"read-only": 1

0 commit comments

Comments
 (0)