'Basic constructor.'

def __init__(self, parser, name, attrs=None, parent=None, previous=None):

    self.parserClass = parser.__class__
    self.isSelfClosing = parser.isSelfClosingTag(name)
    self.convertHTMLEntities = parser.convertHTMLEntities
    self.name = name
    if (attrs is None):
        attrs = []
    self.attrs = attrs
    self.contents = []
    self.setup(parent, previous)
    self.hidden = False
    self.containsSubstitutions = False
