We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be4955 commit 63bce61Copy full SHA for 63bce61
packages/utils/src/browser.ts
@@ -159,12 +159,9 @@ export function getDomElement<E = any>(selector: string): E | null {
159
}
160
161
/**
162
- * Given
163
- *
164
- * Given a child DOM element, returns a query-selector statement describing that
165
- * and its ancestors
166
- * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]
167
- * @returns generated DOM path
+ * Given a child DOM element, returns the component name of the element.
+ * If the component name does not exist, this function will fallback to `htmlTreeAsString`
+ * e.g. [HTMLElement] => MyComponentName
168
*/
169
export function getElementIdentifier(
170
elem: unknown,
0 commit comments