'produces representation of a node in staircase-like format:
html
body.main-section
p#intro'

def staircase_text(self):

    res = '\n'
    indent = ('    ' * 4)
    for t in self.tags:
        res += ((indent + t.text()) + '\n')
        indent += ('    ' * 4)
    return res
