[Webkit-unassigned] [Bug 249627] option and optgroup shouldn't be focusable if they are hidden or in a menulist

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 30 13:36:33 PDT 2023


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

--- Comment #3 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
Just need to add:

RefPtr select = ownerSelectElement();
    if (select && select->usesMenuList())
        return false;
    return HTMLElement::isFocusable();

in HTMLOptionElement::isFocusable() and HTMLOptGroupElement::isFocusable(), no need to introduce new functions like Blink patch.

Just fixed it locally, will do PR shortly.

-- 
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/20230530/435320bb/attachment.htm>


More information about the webkit-unassigned mailing list