[webkit-changes] [WebKit/WebKit] 6ae622: Sanitize email input when multiple attribute is set

Luke Warlow noreply at github.com
Mon May 1 13:54:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6ae622978d28c12e50253fab9c4cfc08bcffff1c
      https://github.com/WebKit/WebKit/commit/6ae622978d28c12e50253fab9c4cfc08bcffff1c
  Author: Luke Warlow <luke at warlow.dev>
  Date:   2023-05-01 (Mon, 01 May 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/email-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/email.html
    M Source/WebCore/html/EmailInputType.cpp
    M Source/WebCore/html/EmailInputType.h

  Log Message:
  -----------
  Sanitize email input when multiple attribute is set
https://bugs.webkit.org/show_bug.cgi?id=256137

Reviewed by Tim Nguyen and Chris Dumez.

The sanitizeValue function is now called when the multiple attribute is
changed. As per the spec https://html.spec.whatwg.org/#email-state-(type=email)

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/email-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/email.html:
* Source/WebCore/html/EmailInputType.cpp:
(WebCore::EmailInputType::attributeChanged):
* Source/WebCore/html/EmailInputType.h:

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




More information about the webkit-changes mailing list