Skip to content

Refactor find/match algorithm #44

@bezborodow

Description

@bezborodow

While investigating #42, I noticed that our find/match algorithm could be improved by using closest.

For example:

const element = addedNode.closest(selector)
  || addedNode.querySelector(selector);

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions