scinfu / SwiftSoup

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
https://scinfu.github.io/SwiftSoup/
MIT License
4.52k stars 345 forks source link

open Evaluator? #220

Open siuying opened 2 years ago

siuying commented 2 years ago

It would be handy if I can write my own Evaluator subclass to perform custom matches.

Currently method like Element.iS(_ evaluator: Evaluator) can be used on many evaluators but it'd be very handy if I can use my custom one.