Skip to content

Commit

Permalink
Added comment explaining condition
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Hulce <patrick.hulce@gmail.com>
  • Loading branch information
stephenyu and patrickhulce committed Oct 12, 2020
1 parent 219b93b commit 07ea6d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lighthouse-core/audits/seo/crawlable-anchors.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class CrawlableAnchors extends Audit {
role = role.trim();

if (role.length > 0) return;
// Ignore mailto links even if they use one of the failing patterns. See https://github.com/GoogleChrome/lighthouse/issues/11443#issuecomment-694898412
if (rawHref.startsWith('mailto:')) return;

const windowLocationRegExp = /window\.location=/;
Expand Down

0 comments on commit 07ea6d9

Please sign in to comment.