0

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" />
3
  • I'm inclined to say yes, but why would you want to do this? A password input is just a text field with those properties already set? Commented Jul 19, 2014 at 23:23
  • There is no way to override the text-security discs/bullets/dots with input[type="password"] Commented Jul 19, 2014 at 23:28
  • But why? Are you looking to switch it as a "Show password" option or something like that? Commented Jul 19, 2014 at 23:42

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.