weight attribute added to elements