title: Hide the entire HTML DOM except specific DOM
body: <p>I'm trying to hide everything in the body except the table</p>
  <p>I've tried</p>
  <blockquote>
  <p>body:not(#issuetable) { display:none; }</p>
  </blockquote>
  <pre><code>const css = `
      body:not(#issuetable) { display:none; }
      #issuetable th ,#issuetable td  { display:none; }
      #issuetable th:nth-child(3),#issuetable th:nth-child(5),
      #issuetable td:nth-child(3),#issuetable td:nth-child(5){ display:table-cell; }
  `;
  let style = document.createElement('style');
  style.innerHTML = css;
  document.head.appendChild(style);
  </code></pre>
  <p>The whole thing seems to be hidden. If you know please help.</p>
  <hr />
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html xmlns:o="urn:schemas-microsoft-com:office:office"
        xmlns:x="urn:schemas-microsoft-com:office:excel"
        xmlns="http://www.w3.org/TR/REC-html40"&gt;
      &lt;head&gt;
          &lt;title&gt;John's Done  (Apple Project Management)&lt;/title&gt;
          &lt;style type="text/css"&gt;
           table {
               mso-displayed-decimal-separator:"\.";
               mso-displayed-thousand-separator:"\,";
           }
           body
           {
               margin: 0px;
               font-size: 12px;
               font-family: Arial, sans-serif;
               color:black;
           }
  
          &lt;/style&gt;
          &lt;META HTTP-EQUIV="Content-Type" Content="application/vnd.ms-excel; charset=UTF-8"&gt;
          &lt;!-- JRA-7598 - ensure fields (e.g. description) occupy only one cell - even fields containing newlines. --&gt;
          &lt;!--
               Vertical align all cells to the top, in order to align all issue rows of issuetable to the top,
               since Excel does not use or save the css files it is hardcoded here.
             --&gt;
          &lt;style&gt;
           @page
           {
               mso-page-orientation:landscape;
               margin:.25in .25in .5in .25in;
               mso-header-margin:.5in;
               mso-footer-margin:.25in;
               mso-footer-data:"&amp;R&amp;P of &amp;N";
               mso-horizontal-page-align:center;
               mso-vertical-page-align:center;
           }
  
           td.issuekey,
           td.issuetype,
           td.status {
               mso-style-parent: "";
               mso-number-format: \@;
               text-align: left;
           }
           br
           {
               mso-data-placement:same-cell;
           }
  
           td
           {
               vertical-align: top;
           }
          &lt;/style&gt;
  
          &lt;!--[if gte mso 9]&gt;&lt;xml&gt;
              &lt;x:ExcelWorkbook&gt;
              &lt;x:ExcelWorksheets&gt;
              &lt;x:ExcelWorksheet&gt;
              &lt;x:Name&gt;general_report&lt;/x:Name&gt;
              &lt;x:WorksheetOptions&gt;
              &lt;x:Print&gt;
              &lt;x:ValidPrinterInfo/&gt;
              &lt;/x:Print&gt;
              &lt;/x:WorksheetOptions&gt;
              &lt;/x:ExcelWorksheet&gt;
              &lt;/x:ExcelWorksheets&gt;
              &lt;/x:ExcelWorkbook&gt;
              &lt;/xml&gt;&lt;![endif]--&gt;
      &lt;/head&gt;
      &lt;body&gt;
  
          &lt;table border="1"&gt;
              &lt;tr bgcolor="#0747a6" height="30"&gt;
                  &lt;td colspan="11"&gt;
                      &lt;img src="http://dev.apple.local:1234/images/jira-software.png" width="57" height="30" border="0" alt="John's Done  (Apple Project Management)"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td colspan="11"&gt;
                      &lt;a href="http://dev.apple.local:1234/issues/?filter=11526"&gt;John's Done  (Apple Project Management)&lt;/a&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td colspan="11"&gt;
                      Displaying &lt;strong&gt;3&lt;/strong&gt; issues at &lt;strong&gt;18/May/22 12:56 PM&lt;/strong&gt;.
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  
          
  
  
                              &lt;issuetable-web-component data-content="issues"&gt;
                  &lt;table id="issuetable"  border="1" cellpadding="3" cellspacing="1" width="100%"&gt;
                          &lt;thead&gt;
          &lt;tr class="rowHeader"&gt;
              
                                                              &lt;th class="colHeaderLink headerrow-issuetype" data-id="issuetype"&gt;
                              Issue Type
                                                      &lt;/th&gt;
                                                  
                                                              &lt;th class="colHeaderLink headerrow-priority" data-id="priority"&gt;
                              Priority
                                                      &lt;/th&gt;
                                                  
                                                              &lt;th class="colHeaderLink headerrow-issuekey" data-id="issuekey"&gt;
                              Key
                                                      &lt;/th&gt;
                                                  
                                                              &lt;th class="colHeaderLink headerrow-status" data-id="status"&gt;
                              Status
                                                      &lt;/th&gt;
                                                  
                                                              &lt;th class="colHeaderLink headerrow-summary" data-id="summary"&gt;
                              Summary
                                                      &lt;/th&gt;
                                                  
                                                              &lt;th class="colHeaderLink headerrow-assignee" data-id="assignee"&gt;
                              Assignee
                                                      &lt;/th&gt;
                                                  
                                                              &lt;th class="colHeaderLink headerrow-customfield_10100" data-id="customfield_10100"&gt;
                              Sprint
                                                      &lt;/th&gt;
                                                  
                                                              &lt;th class="colHeaderLink headerrow-issuelinks" data-id="issuelinks"&gt;
                              Linked Issues
                                                      &lt;/th&gt;
                                                  
                                                              &lt;th class="colHeaderLink headerrow-customfield_10101" data-id="customfield_10101"&gt;
                              Epic Link
                                                      &lt;/th&gt;
                                                  
                                                              &lt;th class="colHeaderLink headerrow-updated" data-id="updated"&gt;
                              Updated
                                                      &lt;/th&gt;
                                                  
                                                              &lt;th class="colHeaderLink headerrow-duedate" data-id="duedate"&gt;
                              Due Date
                                                      &lt;/th&gt;
                                                                      &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
                      
  
                  &lt;tr id="issuerow14995" rel="14995" data-issuekey="TI-325" class="issuerow"&gt;
                                              &lt;td class="issuetype"&gt;    Bug
  &lt;/td&gt;
                                              &lt;td class="priority"&gt;           High
      &lt;/td&gt;
                                              &lt;td class="issuekey"&gt;
  
      &lt;a class="issue-link" data-issue-key="TI-325" href="http://dev.apple.local:1234/browse/TI-325"&gt;TI-325&lt;/a&gt;
  &lt;/td&gt;
                                              &lt;td class="status"&gt;
                  &lt;span class=" jira-issue-status-lozenge aui-lozenge jira-issue-status-lozenge-blue-gray jira-issue-status-lozenge-new aui-lozenge-subtle jira-issue-status-lozenge-max-width-medium" data-tooltip="&amp;lt;span class=&amp;quot;jira-issue-status-tooltip-title&amp;quot;&amp;gt;Awaiting QA&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;&amp;lt;span class=&amp;quot;jira-issue-status-tooltip-desc&amp;quot;&amp;gt;Awiting QA approval is defined as the QA manager has tested based on the feature requirements.  During this phase the reporter/business contact that requested this feature needs to also test and sign off on the feature.&amp;lt;/span&amp;gt;"&gt;Awaiting QA&lt;/span&gt;    &lt;/td&gt;
                                              &lt;td class="summary"&gt;&lt;p&gt;
                  Campaign - All Types - Values Not Being Passed on the UI (Export Factory XF Date)
      &lt;/p&gt;
  &lt;/td&gt;
                                              &lt;td class="assignee"&gt;            John Heng
      &lt;/td&gt;
                                              &lt;td class="customfield_10100"&gt;&lt;/td&gt;
                                              &lt;td class="issuelinks"&gt;                &lt;/td&gt;
                                              &lt;td class="customfield_10101"&gt;
              Bug Tracker - Go To Market May Release 2022
      &lt;/td&gt;
                                              &lt;td class="updated"&gt; 18/May/22 12:34 AM &lt;/td&gt;
                                              &lt;td class="duedate"&gt;    &amp;nbsp;
  &lt;/td&gt;
                      &lt;/tr&gt;
  
  
                  &lt;tr id="issuerow14993" rel="14993" data-issuekey="TI-324" class="issuerow"&gt;
                                              &lt;td class="issuetype"&gt;    Bug
  &lt;/td&gt;
                                              &lt;td class="priority"&gt;           Medium
      &lt;/td&gt;
                                              &lt;td class="issuekey"&gt;
  
      &lt;a class="issue-link" data-issue-key="TI-324" href="http://dev.apple.local:1234/browse/TI-324"&gt;TI-324&lt;/a&gt;
  &lt;/td&gt;
                                              &lt;td class="status"&gt;
                  &lt;span class=" jira-issue-status-lozenge aui-lozenge jira-issue-status-lozenge-blue-gray jira-issue-status-lozenge-new aui-lozenge-subtle jira-issue-status-lozenge-max-width-medium" data-tooltip="&amp;lt;span class=&amp;quot;jira-issue-status-tooltip-title&amp;quot;&amp;gt;Awaiting QA&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;&amp;lt;span class=&amp;quot;jira-issue-status-tooltip-desc&amp;quot;&amp;gt;Awiting QA approval is defined as the QA manager has tested based on the feature requirements.  During this phase the reporter/business contact that requested this feature needs to also test and sign off on the feature.&amp;lt;/span&amp;gt;"&gt;Awaiting QA&lt;/span&gt;    &lt;/td&gt;
                                              &lt;td class="summary"&gt;&lt;p&gt;
                  Campaign - Edit Page - Rules Parameters DO NOT DISPLAY CORRECTLY
      &lt;/p&gt;
  &lt;/td&gt;
                                              &lt;td class="assignee"&gt;            John Heng
      &lt;/td&gt;
                                              &lt;td class="customfield_10100"&gt;&lt;/td&gt;
                                              &lt;td class="issuelinks"&gt;                &lt;/td&gt;
                                              &lt;td class="customfield_10101"&gt;
              Bug Tracker - Go To Market May Release 2022
      &lt;/td&gt;
                                              &lt;td class="updated"&gt; 18/May/22 12:36 AM &lt;/td&gt;
                                              &lt;td class="duedate"&gt;    &amp;nbsp;
  &lt;/td&gt;
                      &lt;/tr&gt;
  
  
                  &lt;tr id="issuerow14987" rel="14987" data-issuekey="TI-318" class="issuerow"&gt;
                                              &lt;td class="issuetype"&gt;    Bug
  &lt;/td&gt;
                                              &lt;td class="priority"&gt;           Medium
      &lt;/td&gt;
                                              &lt;td class="issuekey"&gt;
  
      &lt;a class="issue-link" data-issue-key="TI-318" href="http://dev.apple.local:1234/browse/TI-318"&gt;TI-318&lt;/a&gt;
  &lt;/td&gt;
                                              &lt;td class="status"&gt;
                  &lt;span class=" jira-issue-status-lozenge aui-lozenge jira-issue-status-lozenge-blue-gray jira-issue-status-lozenge-new aui-lozenge-subtle jira-issue-status-lozenge-max-width-medium" data-tooltip="&amp;lt;span class=&amp;quot;jira-issue-status-tooltip-title&amp;quot;&amp;gt;Awaiting QA&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;&amp;lt;span class=&amp;quot;jira-issue-status-tooltip-desc&amp;quot;&amp;gt;Awiting QA approval is defined as the QA manager has tested based on the feature requirements.  During this phase the reporter/business contact that requested this feature needs to also test and sign off on the feature.&amp;lt;/span&amp;gt;"&gt;Awaiting QA&lt;/span&gt;    &lt;/td&gt;
                                              &lt;td class="summary"&gt;&lt;p&gt;
                  Rule Conditions have filled colored cells on Product and Marketing Campaign Detail
      &lt;/p&gt;
  &lt;/td&gt;
                                              &lt;td class="assignee"&gt;            John Heng
      &lt;/td&gt;
                                              &lt;td class="customfield_10100"&gt;CE Go To Market Sprint&lt;/td&gt;
                                              &lt;td class="issuelinks"&gt;                &lt;/td&gt;
                                              &lt;td class="customfield_10101"&gt;
              Bug Tracker - Go To Market May Release 2022
      &lt;/td&gt;
                                              &lt;td class="updated"&gt; 18/May/22 12:53 PM &lt;/td&gt;
                                              &lt;td class="duedate"&gt;    20/May/22
  &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tbody&gt;
      &lt;/table&gt;
      &lt;/issuetable-web-component&gt;
      &lt;div class="end-of-stable-message"&gt;&lt;/div&gt;
              &lt;table border="1" &gt;
  &lt;tr&gt;
      &lt;td bgcolor="#f5f5f5" colspan="11"&gt;&lt;font size="1"&gt;
          Generated at Wed May 18 12:56:37 UTC 2022 by John Heng using Jira 8.12.1#812002-sha1:7c28d59557fed9c1e3e470d7ce83e486c2b409b6.
      &lt;/font&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>