Remove fragment logic from html.py.