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 33da068 commit 692e9e7Copy full SHA for 692e9e7
packages/web-integration/src/extractor/web-extractor.ts
@@ -34,16 +34,17 @@ interface WebElementInfo extends ElementInfo {
34
let indexId = 0;
35
36
function tagNameOfNode(node: Node): string {
37
+ let tagName = '';
38
if (node instanceof HTMLElement) {
- return node.tagName.toLowerCase();
39
+ tagName = node.tagName.toLowerCase();
40
}
41
42
const parentElement = node.parentElement;
43
if (parentElement && parentElement instanceof HTMLElement) {
- return parentElement.tagName.toLowerCase();
44
+ tagName = parentElement.tagName.toLowerCase();
45
46
- return '';
47
+ return tagName ? `<${tagName}>` : '';
48
49
50
function collectElementInfo(
0 commit comments