Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/widgets/the-select-element/option-empty-label.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>OPTION's label attribute in SELECT -- Empty label uses Element text</title>
<link rel="match" href="option-label-ref.html">
<meta name="assert" content="An option element is expected to be rendered by displaying the element's label.">
<select>
<option label>Label Text</option>
</select>
<br/>
<select size="4">
<option label>Label Text</option>
</select>