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.   

Comments »

No comments yet.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

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