Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/forms/the-datalist-element/input-text-datalist-appearance.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=assert title="text inputs should show an indicator when they have a datalist.">
<link rel=mismatch href="input-text-focused-ref.html">
<link rel=assert title="Text inputs should have different appearance when focused if they have a datalist."
<input list=mydatalist>
<datalist id=mydatalist>
<option>option</option>
</datalist>
<script>
document.querySelector('input').focus();
</script>