Handle all attributes coming from the HTML parser (fixes #1976).