[Webkit-unassigned] [Bug 258862] New: <option> label attribute updates are not shown until focus is moved

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 4 18:51:37 PDT 2023


            Bug ID: 258862
           Summary: <option> label attribute updates are not shown until
                    focus is moved
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bugzilla.krzysdz at gmail.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

Created attachment 466927

  --> https://bugs.webkit.org/attachment.cgi?id=466927&action=review

Problem demonstration

Changes made from JS to label of a selected <option> in <select> are not rendered unless the focus changes. If the new value is assigned using textContent (and there is no label attribute), the text of the <option> will be updated. If label of a selected <option> is changed, re-selecting it may help, but changing textContent of another <option> works too.

If the label was changed in a <button> "click" event listener, it will be rendered only if the focus moves to the <select>. If the change happened as a result of <select> "change" event, the change will be reflected on the list of options, but the <select> will render it as its selected value when the focus moves to another element.

The behaviour is present in Safari 16.5.1, Safari TP 173 and Epiphany TP 45.alpha-5-g2486bfbdf+.

The problem is similar to bug 255230 (and the demo is based on it), but affects label updates, not innerText or textContent.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230705/a7cda18c/attachment.htm>

More information about the webkit-unassigned mailing list