Fixed bug with rendition 2 of getElementParentElement, also added rendition 3
Added check for globalDocument
Merge pull request #206 from web-bert/203-parentElement

Fixed bug with rendition 2 of getElementParentElement, also added rendition 3