Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    Location
    Northbrook, IL
    Posts
    394
    Thanks
    8
    Thanked 6 Times in 6 Posts

    Question is this a firefox(3) bug or am I crazy?

    I submitted this bug a few days ago, and it has not seen any response yet.
    https://bugzilla.mozilla.org/show_bug.cgi?id=414099

    can someone tell me if this is a bug or if i am misunderstanding something?

    thanks,
    Leon

  • #2
    Regular Coder
    Join Date
    Jun 2007
    Location
    USA
    Posts
    527
    Thanks
    26
    Thanked 74 Times in 72 Posts
    Use
    Code:
    e.currentTarget
    Edit:
    And no, I do not think this is a bug.


    -------

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
    <html>
    <head>
    <title>Test</title>
    </head>
    <body><div>
    <div id="div">abc<i>def</i>ghi</div>
    <script type="text/javascript">
    
    document.getElementById("div").onclick = function(e) {
      for(var i in e)
        document.write(i + ":" + e[i] + "<br>");
    };
    
    </script>
    </div></body>
    </html>
    Last edited by Trinithis; 01-29-2008 at 06:21 AM.
    Trinithis

  • #3
    Regular Coder
    Join Date
    Apr 2006
    Location
    Northbrook, IL
    Posts
    394
    Thanks
    8
    Thanked 6 Times in 6 Posts

    Question

    from the bug thread:
    I'm not sure this bug is valid. The target is probably the table cell (since
    we can't render any part of the row outside of cells), and the currentTarget
    property would be the table row element.
    yes, this does work. can I use currentTarget exclusively or will it always depend on whether the target is "renderable"?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •