hasAttribute method

TagQuery hasAttribute(
  1. String attr
)

Require that matched nodes have the attribute attr.

Implementation

TagQuery hasAttribute(String attr) => where((n) => n.attributes.containsKey(attr));