added html5 attribute support