Skip to content

Commit 44972f4

Browse files
committed
Fixed a typo in the description of the 'closest' method
1 parent edc9c31 commit 44972f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ Get or set the option.
555555

556556

557557

558-
##### closest(el:`String`[, selector:`HTMLElement`]):`HTMLElement|null`
558+
##### closest(el:`HTMLElement`[, selector:`String`]):`HTMLElement|null`
559559
For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
560560

561561

0 commit comments

Comments
 (0)