'Returns true iff the given string is the name of a
self-closing tag according to this parser.'

def isSelfClosingTag(self, name):

    return ((name in self.SELF_CLOSING_TAGS) or (name in self.instanceSelfClosingTags))
