<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16757</bug_id>
          
          <creation_ts>2012-04-17 07:58:38 +0000</creation_ts>
          <short_desc>Should cellIndex return -1 if the cell has no parent tr?</short_desc>
          <delta_ts>2013-08-15 00:33:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#attributes-common-to-td-and-th-elements</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>yuhongbao_386</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66758</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-04-17 07:58:38 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html
Multipage: http://www.whatwg.org/C#attributes-common-to-td-and-th-elements
Complete: http://www.whatwg.org/c#attributes-common-to-td-and-th-elements

Comment:
Should cellIndex return -1 if the cell has no parent tr?

Posted from: 91.181.34.103 by ms2ger@gmail.com
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0a1) Gecko/20120108 Firefox/12.0a1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66759</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-04-17 07:58:52 +0000</bug_when>
    <thetext>See &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=746077&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66760</commentid>
    <comment_count>2</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-04-17 08:01:38 +0000</bug_when>
    <thetext>In particular, it seems strange that 0 can mean both &quot;first cell&quot; and &quot;cell in the wrong place&quot;. -1 is more common for indexOf-style APIs, IME.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70704</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:20:27 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18118 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71181</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-07-19 23:00:33 +0000</bug_when>
    <thetext>What do browsers do?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71253</commentid>
    <comment_count>5</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-07-20 10:50:55 +0000</bug_when>
    <thetext>&lt;http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=1673&gt;

Gecko: -1
Chrome: 0
Opera: undefined (but does support the attribute for cells with a parent tr)
IE: semi-random numbers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71262</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-07-20 16:59:52 +0000</bug_when>
    <thetext>jeez.

Ok, I&apos;ll look into making it -1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72057</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-08-10 19:49:50 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7243.
Check-in comment: All the browsers disagree, so we&apos;ll reward the one that makes the most sense. Today&apos;s winner: Firefox!
http://html5.org/tools/web-apps-tracker?from=7242&amp;to=7243</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72058</commentid>
    <comment_count>8</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-08-10 20:05:30 +0000</bug_when>
    <thetext>Filed DSK-371875, &lt;https://bugs.webkit.org/show_bug.cgi?id=93738&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72077</commentid>
    <comment_count>9</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-08-11 18:02:17 +0000</bug_when>
    <thetext>And a test:

http://dvcs.w3.org/hg/html/diff/3956549d084d/tests/submission/Ms2ger/the-elements-of-html/tabular-data/attributes-common-to-td-and-th-elements/cellIndex.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84697</commentid>
    <comment_count>10</comment_count>
    <who name="Yuhong Bao">yuhongbao_386</who>
    <bug_when>2013-03-20 00:29:38 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; IE: semi-random numbers
Playing around with WinDbg, these &quot;semi-random numbers&quot; seems to be addresses. This can probably be used as an address leak to defeat ASLR in IE9. IE10 fixed this and matches the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84698</commentid>
    <comment_count>11</comment_count>
    <who name="Yuhong Bao">yuhongbao_386</who>
    <bug_when>2013-03-20 00:38:23 +0000</bug_when>
    <thetext>This information leak is due to MSHTML!CTableCell::get_cellIndex not writing the address provided for the return value that is passed as part of COM calling conventions, which is a stack local variable that happens to be set to the address when the function was called.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84699</commentid>
    <comment_count>12</comment_count>
    <who name="Yuhong Bao">yuhongbao_386</who>
    <bug_when>2013-03-20 00:40:02 +0000</bug_when>
    <thetext>*the address of the object that is passed in the first parameter</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90626</commentid>
    <comment_count>13</comment_count>
    <who name="Yuhong Bao">yuhongbao_386</who>
    <bug_when>2013-07-11 01:55:23 +0000</bug_when>
    <thetext>Fixed in the July Cumulative Update, it now returns -1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92074</commentid>
    <comment_count>14</comment_count>
    <who name="Yuhong Bao">yuhongbao_386</who>
    <bug_when>2013-08-15 00:33:32 +0000</bug_when>
    <thetext>For IE9.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>