# \[JS\] Firefox \`parentElement\` property

**URL:** <https://forum.kirupa.com/t/js-firefox-parentelement-property/158909>\
**Category:** web dev\
**Created:** [August 12, 2005, 6:01pm UTC](https://forum.kirupa.com/t/js-firefox-parentelement-property/158909 "2005-08-12T18:01:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![icio](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/icio/32/484_2.png) [@icio](https://forum.kirupa.com/u/icio)\
**Post date:** [August 12, 2005, 6:01pm UTC](https://forum.kirupa.com/t/js-firefox-parentelement-property/158909/1 "2005-08-12T18:01:51Z")

</div>

Firefox returns `undefined` when i use `obj.parentElement`, where `obj` is passed to a function and is a valid html object.

Is there a work-around ? Is this a bug in Firefox, or is it a bug in my script ?

Thank you.
