MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / nodeForId

Method nodeForId

front_end/core/sdk/DOMModel.ts:1674–1676  ·  view source on GitHub ↗
(nodeId: Protocol.DOM.NodeId|null)

Source from the content-addressed store, hash-verified

1672 }
1673
1674 nodeForId(nodeId: Protocol.DOM.NodeId|null): DOMNode|null {
1675 return nodeId ? this.idToDOMNode.get(nodeId) || null : null;
1676 }
1677
1678 documentUpdated(): void {
1679 // If this frame doesn't have a document now,

Callers 15

pushNodeToFrontendMethod · 0.95
scrollableFlagUpdatedMethod · 0.95
adRelatedStateUpdatedMethod · 0.95
searchResultMethod · 0.95
nodeForLocationMethod · 0.95
getContainerForNodeMethod · 0.95
appendBreakpointMethod · 0.80
DOMModel.test.tsFile · 0.80
constructorMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected