Skip to content

Commit ddd546a

Browse files
authored
Merge pull request #348 from YuichiNukiyama/fix_20977
change getAttributeNode and getAttributeNodeNS
2 parents 7a5ec9d + 2005da0 commit ddd546a

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3596,8 +3596,8 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
35963596
slot: string;
35973597
readonly shadowRoot: ShadowRoot | null;
35983598
getAttribute(name: string): string | null;
3599-
getAttributeNode(name: string): Attr;
3600-
getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
3599+
getAttributeNode(name: string): Attr | null;
3600+
getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null;
36013601
getAttributeNS(namespaceURI: string, localName: string): string;
36023602
getBoundingClientRect(): ClientRect;
36033603
getClientRects(): ClientRectList;

inputfiles/overridingTypes.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,5 +1755,21 @@
17551755
"signatures": [
17561756
"setSelectionRange(start: number, end: number, direction?: \"forward\" | \"backward\" | \"none\"): void"
17571757
]
1758+
},
1759+
{
1760+
"kind": "method",
1761+
"interface": "Element",
1762+
"name": "getAttributeNodeNS",
1763+
"signatures": [
1764+
"getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null"
1765+
]
1766+
},
1767+
{
1768+
"kind": "method",
1769+
"interface": "Element",
1770+
"name": "getAttributeNode",
1771+
"signatures": [
1772+
"getAttributeNode(name: string): Attr | null"
1773+
]
17581774
}
17591775
]

0 commit comments

Comments
 (0)