From 07ea6d974a35545767245b9735d88fc20a904885 Mon Sep 17 00:00:00 2001 From: Stephen Date: Mon, 12 Oct 2020 14:57:47 +1100 Subject: [PATCH] Added comment explaining condition Co-authored-by: Patrick Hulce --- lighthouse-core/audits/seo/crawlable-anchors.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lighthouse-core/audits/seo/crawlable-anchors.js b/lighthouse-core/audits/seo/crawlable-anchors.js index 09733dbc010f..a7525731f91c 100644 --- a/lighthouse-core/audits/seo/crawlable-anchors.js +++ b/lighthouse-core/audits/seo/crawlable-anchors.js @@ -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=/;