def visit_document(self, node):
        if node in 'title':
            self.metatags.insert(0, tag.title(node['title']))
            self.title = node['title']
        else:
            self.title = ''
        self.expand_id_to_anchor = False
        self.default_visit(node)
dataset/ETHPy150Open mgaitan/waliki/waliki/rst2html5.py/HTML5Translator.visit_document/swapped operands of `in`