summaryrefslogtreecommitdiffstats
path: root/browser/components/search/test/browser/telemetry/searchTelemetryDomainCategorizationReporting.html
blob: 22f763191a72ca6ed2718b2452fd14dcca32f37f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="results">
    <!-- Don't include domains matching the provider. -->
    <div class="organic">
      <a href="https://www.example.com">Link</a>
      <a href="https://example.com">Link</a>
    </div>
    <div class="organic">
      <a href="https://www.foobar.org">Link</a>
    </div>
    <div data-ad-domain="abc.org">
      <a href="https://example.com/ad">Sponsored Link</a>
    </div>
    <div>
      <a class="ad" href="https://example.com/ad?ad_domain=def.org">Sponsored Link</a>
    </div>
    <!-- Don't throw on anchors with non-standard or non-existent hrefs -->
    <div>
      <a href="javascript:console.log('hello world')">A javascript: URL link</a>
    </div>
    <div>
      <a>An anchor that's missing an href attribute</a>
    </div>
    <div>
      <a href="#">An anchor with a dummy href attribute value</a>
    </div>
  </div>
  <aside>
    <div class="organic">
      <a href="https://foobaz.com"></a>
    </div>
  </aside>
  <div class="organic">
    <!-- Should not find this because it's not part of the results -->
    <a href="https://outside-results.ca"></a>
  </div>
</body>
</html>