[Webkit-unassigned] [Bug 169296] Label of an <option> element should not be displayed when textContent of the element is empty

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 7 12:10:36 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=169296

--- Comment #4 from Chris Dumez <cdumez at apple.com> ---
(In reply to comment #3)
> > 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:
https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2

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:
https://html.spec.whatwg.org/multipage/forms.html#concept-option-label

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."

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170307/969934c5/attachment-0001.html>


More information about the webkit-unassigned mailing list