diff --git a/AdvancedHTMLParser/Tags.py b/AdvancedHTMLParser/Tags.py
index <HASH>..<HASH> 100644
--- a/AdvancedHTMLParser/Tags.py
+++ b/AdvancedHTMLParser/Tags.py
@@ -1876,6 +1876,29 @@ class AdvancedTag(object):
 
         return None
 
+    def getParentElementCustomFilter(self, filterFunc):
+        '''
+            getParentElementCustomFilter - Runs through parent on up to document root, returning the
+
+                                              first tag which filterFunc(tag) returns True.
+
+                @param filterFunc <function/lambda> - A function or lambda expression that should return "True" if the passed node matches criteria.
+
+                @return <AdvancedTag/None> - First match, or None
+
+
+                @see getFirstElementCustomFilter for matches against children
+        '''
+        parentNode = self.parentNode
+        while parentNode:
+
+            if filterFunc(parentNode) is True:
+                return parentNode
+
+            parentNode = parentNode.parentNode
+
+        return None
+
     def getPeersByAttr(self, attrName, attrValue):
         '''
             getPeersByAttr - Gets peers (elements on same level) which match an attribute/value combination.
Implement AdvancedTag.getParentElementCustomFunction which takes a lambda and reutrns the first parent of given node which matches (returns True)