[Webkit-unassigned] [Bug 145869] Select validation does not correctly work when handling change event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 19 17:39:52 PDT 2015


Dean Jackson <dino at apple.com> changed:

           What    |Removed                     |Added
 Attachment #259434|review?                     |review+
              Flags|                            |

--- Comment #2 from Dean Jackson <dino at apple.com> ---
Comment on attachment 259434
  --> https://bugs.webkit.org/attachment.cgi?id=259434

View in context: https://bugs.webkit.org/attachment.cgi?id=259434&action=review

> Source/WebCore/ChangeLog:14
> +        Test: fast/forms/onchange-select-check-validity.html
> +
> +        When selecting an option in a <select> with validation that also has an onchange listener, calling
> +        checkValidity() for the select within the onchange handler would produce incorrect results and (on
> +        a debug build) crash at an assertion. This is because the change events were being dispatched before
> +        form validity was updated. Making the validation step come before the change event dispatch fixes
> +        this issue.

Normally the Test line comes last.

> LayoutTests/fast/forms/onchange-select-check-validity.html:17
> +        select.onchange = showFormValidity;
> +        select.addEventListener("change", showFormValidity);

I think these two lines do the same thing. You only need one of them.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150820/26d07866/attachment.html>

More information about the webkit-unassigned mailing list