tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

remove-caption-from-anon-table.html (801B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>Removing the last caption from an anonymous table</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-tables/">
      5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1907789">
      6 <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
      7 <link rel="author" href="https://mozilla.org" title="Mozilla">
      8 <link rel="match" href="remove-caption-from-anon-table-ref.html">
      9 <table style="display: block">
     10  <caption>Some caption</caption>
     11  <tbody>
     12    <tr>
     13      <th>Header</th>
     14    </tr>
     15    <tr>
     16      <td>Some long long long content</td>
     17    </tr>
     18  </tbody>
     19 </table>
     20 <script>
     21 onload = function() {
     22  let caption = document.querySelector("caption");
     23  caption.getBoundingClientRect();
     24  caption.remove();
     25 }
     26 </script>