<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Label of an <option> element should not be displayed when textContent of the element is empty"
href="https://bugs.webkit.org/show_bug.cgi?id=169296#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Label of an <option> element should not be displayed when textContent of the element is empty"
href="https://bugs.webkit.org/show_bug.cgi?id=169296">bug 169296</a>
from <span class="vcard"><a class="email" href="mailto:cdumez@apple.com" title="Chris Dumez <cdumez@apple.com>"> <span class="fn">Chris Dumez</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=169296#c4">comment #4</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=169296#c3">comment #3</a>)
> > > Label of an <option> element should not be displayed when textContent of the element is empty
> >
> > @David: Do you have a link to a spec that says this is the expected behavior?
>
> What I found is:
> <a href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2">https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2</a>
>
> which says:
> "An option element is expected to be rendered by displaying the element's
> label, indented under its optgroup element if it has one."
>
> label points to:
> <a href="https://html.spec.whatwg.org/multipage/forms.html#concept-option-label">https://html.spec.whatwg.org/multipage/forms.html#concept-option-label</a>
>
> which says:
> "The label attribute provides a label for element. The label of an option
> element is the value of the label content attribute, if there is one and its
> value is not the empty string, or, otherwise, the value of the element's
> text IDL attribute."</span >
So as far as I can tell, we match the HTML spec here. If it does not match other browsers, we likely want to file a bug against the HTML spec.</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>