Explorar o código

Merge pull request #57 from samuel871211/fixJSDoc

doc: update JSDoc of `DOMElementNode.xpath`
Ashu hai 5 meses
pai
achega
43d08825b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      chrome-extension/src/background/dom/views.ts

+ 1 - 1
chrome-extension/src/background/dom/views.ts

@@ -33,11 +33,11 @@ export class DOMTextNode extends DOMBaseNode {
 }
 }
 
 
 export class DOMElementNode extends DOMBaseNode {
 export class DOMElementNode extends DOMBaseNode {
+  tagName: string | null;
   /**
   /**
    * xpath: the xpath of the element from the last root node (shadow root or iframe OR document if no shadow root or iframe).
    * xpath: the xpath of the element from the last root node (shadow root or iframe OR document if no shadow root or iframe).
    * To properly reference the element we need to recursively switch the root node until we find the element (work you way up the tree with `.parent`)
    * To properly reference the element we need to recursively switch the root node until we find the element (work you way up the tree with `.parent`)
    */
    */
-  tagName: string | null;
   xpath: string | null;
   xpath: string | null;
   attributes: Record<string, string>;
   attributes: Record<string, string>;
   children: DOMBaseNode[];
   children: DOMBaseNode[];