<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Label of an <option> element is displayed when textContent of the element is empty"
href="https://bugs.webkit.org/show_bug.cgi?id=169296">169296</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Label of an <option> element is displayed when textContent of the element is empty
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Safari 10
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>URL</th>
<td>data:text/html,<select><option%20value="X"%20label="X"></option><option%20value="?%22%3E?%3C/option%3E%3Coption%20value=%22+%22%3E+%3C/option%3E%3Coption%20value=%22-%22%3E-%3C/option%3E%3C/select%3E
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>Forms
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ddkilzer@webkit.org
</td>
</tr>
<tr>
<th>CC</th>
<td>ap@webkit.org, cdumez@apple.com, rniwa@webkit.org, webkit-bug-importer@group.apple.com, wenson_hsieh@apple.com
</td>
</tr></table>
<p>
<div>
<pre>The label of an <option> element is displayed in a <select> menu when the textContent of the <option> element is empty, such as in this example:
<select>
<option value="X" label="Y"></option>
<option value="?">?</option>
<option value="+" >+</option>
<option value="-" >-</option>
</select>
This displays the following options in the <select> menu in WebKit:
Y
?
+
-
Neither Firefox nor Chrome display the label--instead that item is blank.
This matters because a future version of Bugzilla added the label, so WebKit will render the <option> incorrectly until this is fixed:
<<a href="https://github.com/bugzilla/bugzilla/commit/7d0c10e71498f2909f466fc0ccda1890595bd3ff#diff-535e432916dc0692c5c86efd8da46662L126">https://github.com/bugzilla/bugzilla/commit/7d0c10e71498f2909f466fc0ccda1890595bd3ff#diff-535e432916dc0692c5c86efd8da46662L126</a>></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>