ladybird/Libraries
sideshowbarker 928101482b
LibWeb: Fix accessible-name computation for “encapsulation” cases
This change makes Ladybird correctly handle all “encapsulation” tests in
the https://wpt.fyi/results/accname/name/comp_host_language_label.html
set of tests in WPT.

Those all test the requirement that when computing the accessible name
for a <label>-ed form control, then any content (text content or
attribute values) from the control itself that would otherwise be
included in the accessible-name computation for it ancestor <label> must
instead be skipped and not included.

The HTML-AAM spec seems to try to achieve that result by expressing
specific steps for each particular type of form control. But what all
that reduces/optimizes/simplifies down to is just, “skip over self”.

Otherwise, without this change, Ladybird includes that “self” content
from those “encapsulated” elements when doing accessible-name
computation for the elements — which results in AT users hearing
unexpected extra content in the accessible names for those elements.
2024-11-21 05:28:27 +09:00
..
LibArchive Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibCompress LibCompress: Don't assume zlib header is available right away 2024-11-18 19:55:46 -05:00
LibCore LibCore: Make Process::wait_for_termination return exit code 2024-11-19 14:40:03 -07:00
LibCrypto Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibDiff Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibFileSystem LibFileSystem: Port to Windows 2024-11-19 14:35:52 -07:00
LibGC LibGC: Add Swift bindings to the GC heap 2024-11-19 14:32:11 -07:00
LibGfx LibGfx: Remove unused Bitmap loaders 2024-11-19 21:48:45 +01:00
LibHTTP Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibIDL LibIDL: Fix use-after-free in GenerateWindowOrWorkerInterfaces 2024-11-16 10:30:14 +01:00
LibImageDecoderClient Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibIPC Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibJS AK+LibJS: Don't use Temporal for console.time() and console.timeLog() 2024-11-18 17:46:41 -05:00
LibLine Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibMain Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibMedia Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibRegex LibRegex: Avoid generating ForkJumps when jumping to the next alt block 2024-11-17 20:12:39 +01:00
LibRequests Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibRIFF Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibSyntax Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibTest LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
LibTextCodec Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibThreading Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibTLS Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibUnicode Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibURL Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibWasm LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
LibWeb LibWeb: Fix accessible-name computation for “encapsulation” cases 2024-11-21 05:28:27 +09:00
LibWebSocket Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibWebView LibWebView+UI: Handle common WebView client initialization in LibWebView 2024-11-14 11:47:32 +01:00
LibXML Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00