from ehp import * data = '''

It is simple.

''' dom = Html().feed(data) for ind, name, attr in dom.walk(): attr['size'] = '+2' print dom