def child_elements(self):
    children = []
    for tag in self.contents:
        if isinstance(tag, Tag):
            children.append(tag)
    return children
def child_elements(self):
    children = []
    for tag in self.contents:
        if isinstance(tag, Tag):
            children.append(tag)
    return children