[Webkit-unassigned] [Bug 188878] [iOS] Support the inputmode attribute on contenteditable elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 23 00:14:30 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=188878
Ryosuke Niwa <rniwa at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #347898|review? |review-
Flags| |
--- Comment #10 from Ryosuke Niwa <rniwa at webkit.org> ---
Comment on attachment 347898
--> https://bugs.webkit.org/attachment.cgi?id=347898
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=347898&action=review
> Source/WebCore/html/HTMLElement.h:113
> + const AtomicString& inputMode() const;
> + void setInputMode(const AtomicString& value);
I don't think it makes much sense for these functions to take & return AtomicString
since setInputMode does a case-insensitive comparison. Just use String instead.
> LayoutTests/fast/forms/inputmode-attribute.html:29
> +shouldBe('textarea.inputMode = "tel"; textarea.inputMode', '"tel"');
> +shouldBe('textarea.getAttribute("inputmode")', '"tel"');
> +shouldBe('textarea.setAttribute("inputmode", "tel"); textarea.inputMode', '"tel"');
> +shouldBe('editor.inputMode = "url"; editor.inputMode', '"url"');
We need to test every type on every element type.
r- because of this reduces the test coverage and doesn't provide adequate amount of testing for content editable element support.
--
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/20180823/27a7bef7/attachment.html>
More information about the webkit-unassigned
mailing list