Move html attrs to base template to fix bug 1089865