MCPcopy Create free account
hub / github.com/ampproject/amphtml / removeData

Function removeData

build-system/tasks/e2e/driver/query-xpath.js:107–109  ·  view source on GitHub ↗

* Remove the xpath test id data param. * @param {!HTMLElement} node

(node)

Source from the content-addressed store, hash-verified

105 * @param {!HTMLElement} node
106 */
107function removeData(node) {
108 delete node.dataset[TEST_ID_PROPERTY];
109}
110
111/**
112 * Create an iterator over the subtree of the given element.

Callers 1

queryXpathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected