❗️Error/오류를 해결하자!

Input elements should have autocomplete attributes (suggested: "current-password")

hellohailie 2022. 8. 26. 00:39

 

✔️ 에러 코드

Input elements should have autocomplete attributes (suggested: "current-password")

 

 

✔️ 에러가 나온 이유

input type password의 경우에는 자동 완성 속성이 있어야한다!

 

✔️ 에러 해결 방법

autoComplete 속성을 추가해주었다. 여기서는 자동 완성 기능 off로 설정함.

 

👇에러코드 👇

<form>
        <input id='pwd' type='password' maxLength='8'></input>
</form>

👇에러  수정 코드 👇

<form>
        <input id='pwd' type='password' maxLength='8' autoComplete='off'></input>
</form>

 

참고)

https://icecokel.tistory.com/13

 

쉽게 놓치고 지나갈 수 있는 실수 정리 : HTML (1)

안녕하세요. 저희 회사에서는 개발하면서 Warning과 Error관해 깐깐한 편인데요. 이전 회사와, 공부할 때는 원하는 기능만 되면, 개발이 완료되었다고 생각했었는데, Warning까지 다 잡아가면서 개발

icecokel.tistory.com

 

 

 

😃 잘못된 개념 전달이 있다면 댓글 부탁드립니다. 저의 성장에 큰 도움이 됩니다🤓