Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ユーザー登録とログインフォームにautocomplete属性を使いましょう

 ユーザー登録とログインフォームにautocomplete属性を使いましょう

Frontend Conference Okinawa 2023, 2023/11/18
Ivanova Marina, 株式会社ゆめみ

Marina Ivanova

November 18, 2023
Tweet

Other Decks in Programming

Transcript

  1. Ϣʔβʔొ࿥ϑΥʔϜͷautocompleteͷ஋ <section id="register"> <h2>Sign up</h2> <form id="formRegister"> <fieldset> <label for="register_email">Email</label>

    <input id="register_email" required type="email" autocomplete="username" /> <label for=“register_password">New password</label> <input type="password" id="register_password" required autocomplete="new-password" /> </fieldset> <button>Register Account</button> </form> </section> Ϧϙ͸ͪ͜Β: https://github.com/ivanova-marina/autocomplete-sample
  2. ϩάΠϯϑΥʔϜͷautocompleteͷ஋ <section class="page" id="login"> <h2>Sign in</h2> <form id="formLogin"> <fieldset> <label

    for="login_email">Email</label> <input id="login_email" required autocomplete="username" /> <label for="login_password">Password</label> <input type="password" id="login_password" autocomplete="current-password" /> </fieldset> <button>Sign in</button> </form> </section> Ϧϙ͸ͪ͜Β: https://github.com/ivanova-marina/autocomplete-sample
  3. ·ͱΊ w BVUPDPNQMFUFͷ঺հͯ͠ɺొ࿥ϑΥʔϜ΍ΫϨδοτΧʔυೖྗϑΥʔϜʹ࢖͑Δ w ొ࿥͢ΔϢʔβʔωʔϜͱύεϫʔυΛอଘ͞ΕɺϩάΠϯ͢Δ࣌ʹɺϢʔβʔωʔϜͱύεϫʔυ ΛࣗಈͰೖྗ͞ΕΔ w ొ࿥ϑΥʔϜʹɺϢʔβʔωʔϜʹBVUPDPNQMFUFlVTFSOBNFz ϝʔϧΛొ࿥ͯ͠΋ ɺύεϫʔυ

    ʹBVUPDPNQMFUFlOFXQBTTXPSEzΛࢦఆ w ϩάΠϯϑΥʔϜʹϢʔβʔωʔϜʹBVUPDPNQMFUFlVTFSOBNFzɺύεϫʔυʹ BVUPDPNQMFUFlDVSSFOUQBTTXPSEΛࢦఆͨ͠ΒɺϓεϫʔυϚωʔδϟʔ͔Βਖ਼͘͠औಘࣗ͠ಈ Ͱೖྗ͞ΕΔ