'Return ElementTree Element that contains Footnote placeholder.'

def findFootnotesPlaceholder(self, root):

    def finder(element):
        for child in element:
            if child.text:
                if (child.text.find(self.getConfig(u'PLACE_MARKER')) > (-1)):
                    return (child, element, True)
            if child.tail:
                if (child.tail.find(self.getConfig(u'PLACE_MARKER')) > (-1)):
                    return (child, element, False)
            child_res = finder(child)
            if (child_res is not None):
                return child_res
        return None
    res = finder(root)
    return res
