Results 1 to 2 of 2

Thread: Firefox parentNode issue

  1. #1
    Join Date
    Apr 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Firefox parentNode issue

    1) Script Title: chromemenu

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...rome/index.htm

    3) Describe problem:
    When you mouse out of a drop down menu into a text input field, Firefox throws a Permission Denied error for parentNode.

    I hacked the contains_firefox function to work around as follows:

    contains_firefox:function(a, b) {
    try {
    while (b.parentNode)
    if ((b = b.parentNode) == a)
    return true;
    return false;
    }
    catch(e) {return false;}
    },

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I'm aware of FF throwing an error in select situations with regards to the default contains_firefox() code. But it doesn't seem to affect the script's behavior, at least not as far as I can even see.

Bookmarks

Posting Permissions

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