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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 7 11:42:17 PST 2017


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

            Bug ID: 169296
           Summary: Label of an <option> element is displayed when
                    textContent of the element is empty
    Classification: Unclassified
           Product: WebKit
           Version: Safari 10
          Hardware: Unspecified
               URL: data:text/html,<select><option%20value="X"%20label="X"
                    ></option><option%20value="?%22%3E?%3C/option%3E%3Copt
                    ion%20value=%22+%22%3E+%3C/option%3E%3Coption%20value=
                    %22-%22%3E-%3C/option%3E%3C/select%3E
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: ap at webkit.org, cdumez at apple.com, rniwa at webkit.org,
                    webkit-bug-importer at group.apple.com,
                    wenson_hsieh at apple.com

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:
<https://github.com/bugzilla/bugzilla/commit/7d0c10e71498f2909f466fc0ccda1890595bd3ff#diff-535e432916dc0692c5c86efd8da46662L126>

-- 
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/d743e9c5/attachment.html>


More information about the webkit-unassigned mailing list