Skip to content

Commit

Permalink
remove datalist password example (mdn#35856)
Browse files Browse the repository at this point in the history
  • Loading branch information
gagan-bhullar-tech authored Sep 12, 2024
1 parent 4b653b1 commit 8ca92ab
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions files/en-us/web/html/element/datalist/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,6 @@ The {{HTMLElement("input/color", "color")}} type can show predefined colors in a

{{EmbedLiveSample("Color_type", 600, 70)}}

### Password type

The specification allows linking `<datalist>` with a {{HTMLElement("input/password", "password")}} type, but no browser supports it for security reasons.

```html
<label for="pwd">Enter a password:</label>
<input type="password" list="randomPassword" id="pwd" />
<datalist id="randomPassword">
<option value="5Mg[_3DnkgSu@!q#"></option>
</datalist>
```

{{EmbedLiveSample("Password_type", 600, 40)}}

## Technical summary

<table class="properties">
Expand Down

0 comments on commit 8ca92ab

Please sign in to comment.