| Summary: | option and optgroup shouldn't be focusable if they are hidden or in a menulist | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | akeerthi, cdumez, karlcow, rniwa, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2022-12-19 18:02:30 PST
Seems sensible to merge this. 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.
Fingers Crossed - https://github.com/WebKit/WebKit/pull/14507 Committed 264755@main (b9e0d14b62e6): <https://commits.webkit.org/264755@main> Reviewed commits have been landed. Closing PR #14507 and removing active labels. |