[Webkit-unassigned] [Bug 120559] [Forms:color] ColorInputType::didChooseColor should set sanitize value in element.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 24 16:11:19 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=120559

Ahmad Saleem <ahmad.saleem792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ahmad.saleem792 at gmail.com

--- Comment #8 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
I think we don't have SanitizeValue still as this patch was proposing:

https://github.com/WebKit/WebKit/blob/af43ca312063d6ce476c3eb23c3755919916001d/Source/WebCore/html/ColorInputType.cpp#L237

and Web-Specs are as follow:

https://html.spec.whatwg.org/multipage/input.html#color-state-(type=color)

"The value sanitization algorithm is as follows: If the value of the element is a valid simple color, then set it to the value of the element converted to ASCII lowercase; otherwise, set it to the string "#000000"."

Do we need to do anything, appreciate if someone can comment. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220924/24373000/attachment.htm>


More information about the webkit-unassigned mailing list