getElementByHREF function

Element? getElementByHREF(
  1. String tag,
  2. String href
)

Selects an Element in DOM with tag and href.

Implementation

Element? getElementByHREF(String tag, String href) {
  if (href.isEmpty) return null;
  var resolvedURL = resolveUri(href).toString();
  return getElementByValues(tag, getElementHREF, [href, resolvedURL]);
}