Fix size attribute support

Hi. Great work.
I just add size attribute it in the same manner as maxlength attribute.