'Yields the <!doctype> declaration, as a TEXT Node or None.'

@property
def declaration(self):

    for child in self.children:
        if isinstance(child._p, BeautifulSoup.Declaration):
            return child
