'Bookmark definition'

def s_text_bookmark(self, tag, attrs):

    name = attrs[(TEXTNS, 'name')]
    html_id = self.get_anchor(name)
    self.writedata()
    self.opentag('span', {'id': html_id})
    self.closetag('span', False)
    self.purgedata()
