소스 검색

Merge pull request #57 from samuel871211/fixJSDoc

doc: update JSDoc of `DOMElementNode.xpath`
Ashu 5 달 전
부모
커밋
43d08825b7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {
+  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).
    * 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;
   attributes: Record<string, string>;
   children: DOMBaseNode[];