Oceansdeep7 / code-snippet

0 stars 0 forks source link

Element: closest() method #4

Open Oceansdeep7 opened 2 months ago

Oceansdeep7 commented 2 months ago

The closest() method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector.