Closed farsightsoftware closed 1 year ago
Looks good, the only thing that comes to mind is if someone is using the Sizzle engine selector (which was required at one point for Deno Deploy, but afaik isn't required anymore—though it can be explicitly enabled by the user)
Nvm, Sizzle also has match
. This is good to go
Went back and forth about whether to use
el.matches(selectorString)
or go straight tothis.ownerDocument!._nwapi.match
, but if you run this code on a browser, you don't seeclosest
callingmatches
:So went with
_nwapi.match
.