'Return an ``Element`` object constructed from a parser element token.'

@classmethod
def from_token(cls, token):

    tagname = token.tagname
    attrs = [(name, value) for (name, value) in token.attr_list]
    text = token.text
    return cls(tagname, attrs, text)
