| Summary: | Up and down arrow keys in <input> have a different behavior when inside a shadow root | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Cory LaViska <cory> |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | akeerthi, cdumez, darin, rniwa, smoley, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 14 | ||
| Hardware: | Mac | ||
| OS: | macOS 10.15 | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=172567 | ||
| Bug Depends on: | |||
| Bug Blocks: | 148695 | ||
|
Description
Cory LaViska
2020-11-03 04:31:02 PST
Does anyone know if this is a recent change or a long-standing issue? This also reproduces on Safari 13.1.2. Seems like this bug is in Safari, not WebKit. Safari uses JavaScript to get metadata about the text field, and when it can’t because the field is in a shadow tree, its code misfires and blocks the up and down arrows. The misbehaving code is in Safari for handling autocompletion lists. The smaller fix is to make it just not screw up and confuse itself when the text field is in a shadow tree. The bigger fix would be to make autocompletion work with those fields too. The test case works as expected in MiniBrowser, and likely in other WebKit-based browsers. There is a slim chance that some kind of change in WebKit could solve the problem, since it’s indirectly due to difficulty getting data about the text field from the Safari code. |