Bennett
Bennett

Reputation: 979

Can you replicate a password input with a text input?

In other words, are the following equivalent?

<input type="text" autocomplete="off" spellcheck="false" />

<style>
   input[type="text"] {
     -webkit-text-security: disc;
     text-security: disc;
   }
</style>

and

<input type="password" />

Upvotes: 0

Views: 106

Answers (1)

Martin Braun
Martin Braun

Reputation: 12639

No they are not

<input type="password" /> is compatible on all browsers of all versions, while the other is not.

But technically the output result is the same on modern browsers that support even one css property of it.

Upvotes: 1

Related Questions