tor-browser

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

HTMLTableCellElement.html (2326B)


      1 <!DOCTYPE html>
      2 <title>Custom Elements: CEReactions on HTMLTableCellElement interface</title>
      3 <link rel="author" title="Intel" href="http://www.intel.com">
      4 <meta name="assert" content="colSpan, rowSpan, headers, scope, abbr of
      5  HTMLTableCellElement interface must have CEReactions">
      6 <meta name="help" content="https://html.spec.whatwg.org/#the-td-element">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="../../resources/custom-elements-helpers.js"></script>
     10 <script src="../resources/reactions.js"></script>
     11 
     12 <table><tr id="colSpan"></table>
     13 <table><tr id="rowSpan"><tr><tr></table>
     14 <table><tr><th id="id1"><th id="id2"><tr id="td_headers"><tr id="th_headers"></table>
     15 <script>
     16 
     17 function getParentElement(id) {
     18  let parentElement = document.getElementById(id);
     19  return parentElement;
     20 }
     21 
     22 testReflectAttributeWithParentNode(
     23  'colSpan', 'colspan', '2',
     24  '3', 'colSpan on HTMLTableCellElement in td', 'td',
     25  () => getParentElement('colSpan'), HTMLTableCellElement
     26 );
     27 testReflectAttributeWithParentNode(
     28  'colSpan', 'colspan', '2',
     29  '3', 'colSpan on HTMLTableCellElement in th', 'th',
     30  () => getParentElement('colSpan'), HTMLTableCellElement
     31 );
     32 testReflectAttributeWithParentNode(
     33  'rowSpan', 'rowspan', '2',
     34  '3', 'rowSpan on HTMLTableCellElement in td', 'td',
     35  () => getParentElement('rowSpan'), HTMLTableCellElement
     36 );
     37 testReflectAttributeWithParentNode(
     38  'rowSpan', 'rowspan', '2',
     39  '3', 'rowSpan on HTMLTableCellElement in th', 'th',
     40  () => getParentElement('rowSpan'), HTMLTableCellElement
     41 );
     42 testReflectAttributeWithParentNode(
     43  'headers', 'headers', 'id1',
     44  'id2', 'headers on HTMLTableCellElement in td', 'td',
     45  () => getParentElement('td_headers'), HTMLTableCellElement
     46 );
     47 testReflectAttributeWithParentNode(
     48  'headers', 'headers', 'id1',
     49  'id2', 'headers on HTMLTableCellElement in th', 'th',
     50  () => getParentElement('th_headers'), HTMLTableCellElement
     51 );
     52 testReflectAttributeWithParentNode(
     53  'scope', 'scope', 'row',
     54  'col', 'scope on HTMLTableCellElement in th', 'th',
     55  () => getParentElement('colSpan'), HTMLTableCellElement
     56 );
     57 testReflectAttributeWithParentNode(
     58  'abbr', 'abbr', 'Model1',
     59  'Model2', 'abbr on HTMLTableCellElement in th', 'th',
     60  () => getParentElement('colSpan'), HTMLTableCellElement
     61 );
     62 
     63 </script>