The problem is the following in chome el.minLength - it works, Safari writes undefined. Tell me.
// html
<input type="password" placeholder="Пароль" class="auth-box__input" name="user_password" minlength="4" required> // jscript
var user_password = document.getElementsByName('user_password')[0]; console.log(user_password.minLength);