@technoligest While writing tests I found a way to do it which requires no additional branching :)
Usage of attribs is a holdover from when I wrote the first version of this in 2015 and Cheerio was less mature (and so was I, evidently, haha). Cheerios has the jQuery-like attr() which we can use.
@technoligest While writing tests I found a way to do it which requires no additional branching :)
Usage of
attribs
is a holdover from when I wrote the first version of this in 2015 and Cheerio was less mature (and so was I, evidently, haha). Cheerios has the jQuery-likeattr()
which we can use.