Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6f2d27d179bb9706f3a875bdd0210cd269b54c2e
      
https://github.com/WebKit/WebKit/commit/6f2d27d179bb9706f3a875bdd0210cd269b54c2e
  Author: Tyler Wilcock <tyle...@apple.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    A 
LayoutTests/accessibility/mac/stale-input-value-from-subfield-change-expected.txt
    A LayoutTests/accessibility/mac/stale-input-value-from-subfield-change.html
    M LayoutTests/platform/mac-wk1/TestExpectations
    M Source/WebCore/html/BaseDateAndTimeInputType.cpp

  Log Message:
  -----------
  AX: Stale value is served to assistive technologies for partially completed 
date inputs whose subfields change value
https://bugs.webkit.org/show_bug.cgi?id=296011
rdar://155910722

Reviewed by Joshua Hoffman.

Date inputs are made up of sub-elements, which themselves are controls 
(specifically, spinbuttons). Prior to this commit,
we were not updating the cached date-value of date inputs that are partially 
completed (only some of the subfields have
a non-placeholder value). This is because the DOM code only notified 
accesibility of the input changing value when its
actual DOM value changed, and the DOM value of a date input is empty string 
until all fields are filled out.

With this commit, a hook is added into BaseDateAndTimeInputType to notify 
accessibility when a subfield changes.

* 
LayoutTests/accessibility/mac/stale-input-value-from-subfield-change-expected.txt:
 Added.
* LayoutTests/accessibility/mac/stale-input-value-from-subfield-change.html: 
Added.
* LayoutTests/platform/mac-wk1/TestExpectations: Disable new test.
* Source/WebCore/html/BaseDateAndTimeInputType.cpp:
(WebCore::BaseDateAndTimeInputType::didChangeValueFromControl):

Canonical link: https://commits.webkit.org/297435@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to