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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>3662</bug_id>
          
          <creation_ts>2005-06-22 20:09:20 -0700</creation_ts>
          <short_desc>onClick event for TD element doesn&apos;t fire unless its contents are clicked</short_desc>
          <delta_ts>2005-08-19 16:37:28 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tables</component>
          <version>412</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sebastien Boisvert">sebastienboisvert</reporter>
          <assigned_to name="Dave Hyatt">hyatt</assigned_to>
          <cc>frido.ferdinand</cc>
    
    <cc>maksim</cc>
    
    <cc>will.mccullough</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12883</commentid>
    <comment_count>0</comment_count>
    <who name="Sebastien Boisvert">sebastienboisvert</who>
    <bug_when>2005-06-22 20:09:20 -0700</bug_when>
    <thetext>An onClick event specified for a TD element will not fire unless its contents are clicked, instead of 
simply clicking anywhere within the cell.

Steps to reproduce:
1- load attached testcase in browser
2- click anywhere in table cell, except on text
3- click text in table cell

Actual result:
 alert triggered by onclick event only pops up when the cell&apos;s contents are clicked

Expected result:
 alert should popup regardless of where within the cell the mouse click occurs

Additional Information:
 Works as expected in Firefox, Camino, IE/Win, IE/Mac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12884</commentid>
    <comment_count>1</comment_count>
      <attachid>2562</attachid>
    <who name="Sebastien Boisvert">sebastienboisvert</who>
    <bug_when>2005-06-22 20:09:54 -0700</bug_when>
    <thetext>Created attachment 2562
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12892</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Petersen">c.petersen87</who>
    <bug_when>2005-06-22 22:10:51 -0700</bug_when>
    <thetext>Confirming with TOT Webkit and Safari 2.0 (v412).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16259</commentid>
    <comment_count>3</comment_count>
    <who name="Frido Ferdinand">frido.ferdinand</who>
    <bug_when>2005-08-09 06:02:26 -0700</bug_when>
    <thetext>Also occurs with the mouseover event</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16284</commentid>
    <comment_count>4</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2005-08-09 12:11:18 -0700</bug_when>
    <thetext>*** Bug 4339 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16660</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-14 19:44:13 -0700</bug_when>
    <thetext>The behavior of this is not entirely consistent. I can construct test cases where the onclick event 
sometimes fires and sometimes does not fire. I&apos;ll attach one soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16695</commentid>
    <comment_count>6</comment_count>
      <attachid>3395</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-14 23:55:53 -0700</bug_when>
    <thetext>Created attachment 3395
patch to fix this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16917</commentid>
    <comment_count>7</comment_count>
      <attachid>3395</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2005-08-17 23:02:07 -0700</bug_when>
    <thetext>Comment on attachment 3395
patch to fix this

r=me

can this be tested in an automated way?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16996</commentid>
    <comment_count>8</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-19 09:43:45 -0700</bug_when>
    <thetext>I don&apos;t see a way to exercise the hit testing code from JavaScript.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17010</commentid>
    <comment_count>9</comment_count>
    <who name="David Harrison">harrison</who>
    <bug_when>2005-08-19 16:37:28 -0700</bug_when>
    <thetext>Added originally attached test case to manual_tests.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>2562</attachid>
            <date>2005-06-22 20:09:54 -0700</date>
            <delta_ts>2005-06-22 20:09:54 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>TDonclick.html</filename>
            <type>text/html</type>
            <size>300</size>
            <attacher name="Sebastien Boisvert">sebastienboisvert</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8c2NyaXB0PgpmdW5jdGlvbiBkaXNwbGF5QWxlcnQoZWxlbWVudCkKewog
ICAgYWxlcnQoJ1lvdSBjbGlja2VkICcrZWxlbWVudC5ub2RlTmFtZSk7Cn0KPC9zY3JpcHQ+Cjwv
aGVhZD4KPGJvZHk+CiAgICA8dGFibGUgc3R5bGU9IndpZHRoOjEwMHB4O2hlaWdodDoxMDBweDti
b3JkZXI6aW5zZXQiPgogICAgICAgIDx0cj4KICAgICAgICAgICAgPHRkIG9uY2xpY2s9ImRpc3Bs
YXlBbGVydCh0aGlzKSI+Q2xpY2sgTWUhPC90ZD4KICAgICAgICA8L3RyPgogICAgPC90YWJsZT4K
PC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>3395</attachid>
            <date>2005-08-14 23:55:53 -0700</date>
            <delta_ts>2005-08-17 23:02:07 -0700</delta_ts>
            <desc>patch to fix this</desc>
            <filename>TableCellHitTestPatch.txt</filename>
            <type>text/plain</type>
            <size>1894</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL3Jvb3QvV2ViQ29yZS9D
aGFuZ2VMb2csdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNDU3NwpkaWZmIC1wIC11IC1yMS40NTc3
IENoYW5nZUxvZwotLS0gQ2hhbmdlTG9nCTE1IEF1ZyAyMDA1IDA1OjAxOjQzIC0wMDAwCTEuNDU3
NworKysgQ2hhbmdlTG9nCTE1IEF1ZyAyMDA1IDA2OjU0OjU1IC0wMDAwCkBAIC0xLDMgKzEsMTcg
QEAKKzIwMDUtMDgtMTQgIERhcmluIEFkbGVyICA8ZGFyaW5AYXBwbGUuY29tPgorCisgICAgICAg
IFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFRlc3QgY2FzZXMgYWRkZWQ6
IChOT05FKQorCisgICAgICAgIC0gZml4ZWQgaHR0cDovL2J1Z3ppbGxhLm9wZW5kYXJ3aW4ub3Jn
L3Nob3dfYnVnLmNnaT9pZD0zNjYyCisgICAgICAgICAgb25DbGljayBldmVudCBmb3IgVEQgZWxl
bWVudCBkb2Vzbid0IGZpcmUgdW5sZXNzIGl0cyBjb250ZW50cyBhcmUgY2xpY2tlZAorCisgICAg
ICAgICoga2h0bWwvcmVuZGVyaW5nL3JlbmRlcl9ibG9jay5jcHA6IChraHRtbDo6UmVuZGVyQmxv
Y2s6Om5vZGVBdFBvaW50KToKKyAgICAgICAgVGFrZSB0aGUgYm9yZGVyIGV4dHJhIGludG8gYWNj
b3VudCB3aGVuIGhpdCB0ZXN0aW5nIGp1c3QgYXMgd2UgZG8gd2hlbgorICAgICAgICBwYWludGlu
ZyB0aGUgYmFja2dyb3VuZCBvZiBhIHRhYmxlIGNlbGw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0eSwgbV93aWR0aCwgbV9oZWln
aHQpOworICAgICAgICBpbnQgdG9wRXh0cmEgPSBib3JkZXJUb3BFeHRyYSgpOworICAgICAgICBR
UmVjdCBib3VuZHNSZWN0KHR4LCB0eSAtIHRvcEV4dHJhLCBtX3dpZHRoLCBtX2hlaWdodCArIHRv
cEV4dHJhICsgYm9yZGVyQm90dG9tRXh0cmEoKSk7CiAgICAgICAgIGlmIChpc1Jvb3QoKSB8fCAo
c3R5bGUoKS0+dmlzaWJpbGl0eSgpID09IFZJU0lCTEUgJiYgYm91bmRzUmVjdC5jb250YWlucyhf
eCwgX3kpKSkgewogICAgICAgICAgICAgc2V0SW5uZXJOb2RlKGluZm8pOwogICAgICAgICAgICAg
cmV0dXJuIHRydWU7Cg==
</data>
<flag name="review"
          id="374"
          type_id="1"
          status="+"
          setter="mjs"
    />
          </attachment>
      

    </bug>

</bugzilla>