[Webkit-unassigned] [Bug 119291] HTMLOptionElement::defaultSelected should affect selection state of other option elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 14 04:59:14 PDT 2023


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

--- Comment #2 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
(In reply to Ahmad Saleem from comment #1)
> We should do following rather than commit from Comment 0:
> 
> https://chromium.googlesource.com/chromium/src.git/+/
> 4288626a69e2e6426555bb174a99e555e174f755
> 
> It make us pass linked test case in URL field, where we are failing
> following tests:
> 
> FAIL select1[2].defaultSelected = true; selectionMap(select1) should be 001.
> Was 101.
> FAIL select1[1].defaultSelected = true; selectionMap(select1) should be 010.
> Was 111.
> FAIL select1[1].defaultSelected = false; selectionMap(select1) should be
> 100. Was 101.
> FAIL select1[2].selected = true;

This needs to be done in following function (HTMLOptionElement::attributeChanged):

if (oldValue.isNull() != newValue.isNull())
            setSelected(!newValue.isNull());

-- 
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/20230614/52137428/attachment-0001.htm>


More information about the webkit-unassigned mailing list