getElementsByClass XPath version doesn't work with a parent node

Description

getElementsByClass has a broken implementation of the XPath version of the function where it doesn't recognize a passed in parent node. Right now, the XPath version is disabled because of it so that the function will behave as expected.