js

[JavaScript] Input elements should have autocomplete attributes

natrue 2021. 12. 1. 17:19
728x90
[DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) 
<input type=โ€‹"password" id=โ€‹"password" name=โ€‹"password" placeholder=โ€‹"๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”." onkeyup=โ€‹"enterkey()โ€‹;โ€‹">โ€‹

<input> ํƒœ๊ทธ์— ์ž๋™์™„์„ฑ ๊ธฐ๋Šฅ์„ ํ•ด์ œํ•˜๋Š” 
 autocomplete="off" ์ถ”๊ฐ€ 

<input type=โ€‹"password" id=โ€‹"password" name=โ€‹"password" placeholder=โ€‹"๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”." autocomplete="off" onkeyup=โ€‹"enterkey()โ€‹;โ€‹">โ€‹

 autocomplete="off"  = ์ž๋™์™„์„ฑ์„ ๊ธˆ์ง€ํ•œ๋‹ค.

 

* ๋‹จ, ํฌ๋กฌ์ด๋‚˜ ์‚ฌํŒŒ๋ฆฌ ๋“ฑ์—์„œ ๋‚˜ํƒ€๋‚˜๋Š”

[๊ตฌ๊ธ€/์• ํ”Œ/์‚ผ์„ฑ ๊ณ„์ •์— ์ด ๊ณ„์ • ์ €์žฅํ•˜๊ธฐ]๋ฅผ ํ†ตํ•ด ์ €์žฅ๋œ ์ •๋ณด๋Š” ๊ธˆ์ง€๋˜์ง€ ์•Š๋Š”๋‹ค.

์ด ๋˜ํ•œ ๊ธˆ์ง€์‹œํ‚ค๋ ค๋ฉด ์•„๋ž˜์— ๋‚˜์˜ค๋Š” new-password ๊ฐ’์„ ์‚ฌ์šฉ