Symmetri Developer Blog

November 7, 2007

parentElement and parentNode

Ajax, Javascript - By Shourov Bhattacharya

I’ve been using parentElement to work my way up the DOM in Javascript, but it completely slipped my mind until recently that it doesn’t work in Firefox. The reason is that parentElement is one of those non-standard little add-ons that Microsoft so love to give us when releasing browser support. The better alternative is parentNode, which is part of the W3C standard.   

Get free blog up and running in minutes with Blogsome
Theme designed by Janis Joseph