[Webkit-unassigned] [Bug 193040] HTMLInputElement.select() doesn't work in iOS Safari
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 2 14:29:09 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=193040
Chris Dumez <cdumez at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rniwa at webkit.org
--- Comment #2 from Chris Dumez <cdumez at apple.com> ---
I can see there is not IOS specific code in our select implementation:
void HTMLTextFormControlElement::select(SelectionRevealMode revealMode, const AXTextStateChangeIntent& intent)
{
// FIXME: We should abstract the selection behavior into an EditingBehavior function instead
// of hardcoding the behavior using a macro define.
#if PLATFORM(IOS_FAMILY)
// We don't want to select all the text on iOS. Instead use the standard textfield behavior of going to the end of the line.
setSelectionRange(std::numeric_limits<int>::max(), std::numeric_limits<int>::max(), SelectionHasForwardDirection, revealMode, intent);
#else
setSelectionRange(0, std::numeric_limits<int>::max(), SelectionHasNoDirection, revealMode, intent);
#endif
}
Clearly, we have an implementation of HTMLInputElement.select() on all platforms. However, the iOS implementation is a bit different for some reason.
--
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/20190102/a4c78ed0/attachment.html>
More information about the webkit-unassigned
mailing list