isElementWithHREF function

bool isElementWithHREF(
  1. Element element
)

Returns true if element type can have href attribute.

Implementation

bool isElementWithHREF(Element element) {
  if (element is LinkElement) return true;
  if (element is AnchorElement) return true;
  if (element is BaseElement) return true;
  if (element is AreaElement) return true;

  return false;
}