That's by design in chromium browsers. You can check this issue and it has been marked as WontFix. I think we can't change the situation.
If you want to prevent autofilling in your own site, I think you can only use autocomplete="new-password"
. If you're not satisfied with Baidu search bar autocomplete feature, I think you can provide feedback to the site to see if they'll improve the user experience.
Edit:
I found another workaround. When I add another input field just behind the autocomplete="off"
field, autocomplete="off"
will work in Edge. You can put a hidden input behind it. You can refer to the sample code below, it works in both Edge and Chrome:
<form action="/action_page.php">
First name: <input type="text" name="fname" autocomplete="off"><input type="text" name="dummy" style="display:none"><br>
Last name: <input type="text" name="lname" autocomplete="on"><br>
<input type="submit">
</form>
For the autocomplete="off"
not working in Edge issue, you can also provide feedback to Edge team by pressing Alt+Shift+I in Edge. The Edge team will check the feedbacks and improve the product continuously. Thanks for your understading.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Regards,
Yu Zhou