ded / bonzo

library agnostic, extensible DOM utility
Other
1.32k stars 137 forks source link

bonzo doesn't specialcase "required" attr #139

Open x-yuri opened 6 years ago

x-yuri commented 6 years ago

By that I mean, that required attr behaves as , e.g., checked one:

<input id="i1">   <!-- document.getElementById('i1').required === false -->
<input id="i2" required>   <!-- document.getElementById('i2').required === true -->
<input id="i3" required="required">   <!-- document.getElementById('i3').required === true -->