matches method
Implementation
bool matches(UEpubNode node) {
if (tag.isNotEmpty && tag != "*" && node.tag != tag) return false;
if (id.isNotEmpty && node.id != id) return false;
if (className.isNotEmpty && !node.classes.contains(className)) return false;
return true;
}