Remove the unnecessary checking of attribute value length.