jsf.js_next_gen 4.0.0-beta-22 → 4.0.0-beta-23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5567,12 +5567,15 @@ class ExtDomquery extends mona_dish_1.DQ {
5567
5567
  // textnode
5568
5568
  return true;
5569
5569
  }
5570
- let href = element.attr("href").orElse(element.attr("src").value);
5571
- if (!href.isPresent()) {
5570
+ let reference = element.attr("href")
5571
+ .orElse(element.attr("src").value)
5572
+ .orElse(element.attr("rel").value);
5573
+ if (!reference.isPresent()) {
5572
5574
  return true;
5573
5575
  }
5574
- return !head.querySelectorAll(`${tagName}[href='${href.value}']`).length &&
5575
- !head.querySelectorAll(`${tagName}[src='${href.value}']`).length;
5576
+ return !head.querySelectorAll(`${tagName}[href='${reference.value}']`).length &&
5577
+ !head.querySelectorAll(`${tagName}[src='${reference.value}']`).length &&
5578
+ !head.querySelectorAll(`${tagName}[rel='${reference.value}']`).length;
5576
5579
  }
5577
5580
  this
5578
5581
  .filter(resourceIsNew)
Binary file
Binary file