Firefox doesn't use parentElement, it uses parentNode

JavaScript in FireFox doesn't support the function parentElement. You should use parentNode instead.


Author Paul Hayman

Paul is the COO of kwiboo ltd and has more than 20 years IT consultancy experience. He has consulted for a number of blue chip companies and has been exposed to the folowing sectors: Utilities, Telecommunications, Insurance, Media, Investment Banking, Leisure, Legal, CRM, Pharmaceuticals, Interactive Gaming, Mobile Communications, Online Services.

Paul is the COO and co-founder of kwiboo ( and is also the creator of GeekZilla.


Brle said:

Thank you very much, I spent whole afternoon trying to make Firefox run javascript which use parentElement!

27/Aug/2007 18:31 PM

Yagnesh said:

thnx it worksssssssss

13/Dec/2008 05:51 AM

manish said:


07/Jul/2010 12:41 PM

tinku said:

Thats a small but grate post. Very much helpful. Thanks a lot Paul.

10/Nov/2010 17:28 PM

Hemant said:

This is very good post thanks yarrrrrrrrrrr

01/Apr/2011 11:02 AM

Neil said:

or to put it more accurately:

"Javascript in IE doesn't support the function parentNode".

W3C DOM defines a parentNode property of the Node interface.

IE defines a proprietary parentElement.

06/Nov/2011 11:02 AM

Add Comment


Your comment has been received and will be shown once it passes moderation.