Move html attrs to base template: fix bug 1089865