[webkit-dev] Are Qt and GTK+ intentionally returning false in shouldShowPlaceholderWhenFocused?

Darin Adler darin at apple.com
Tue Aug 20 08:32:52 PDT 2013


On Aug 20, 2013, at 5:43 AM, Allan Sandfeld Jensen <kde at carewolf.com> wrote:

> What is a placeholder in the context of a text-edit

Placeholder text is text telling you what to type, like in this example:

data:text/html,<input placeholder="Title">


> why should it be visible when focused

This is something that changed in Mac user interface. In older versions of the Mac UI, when you clicked to place an insertion point in the text field or tabbed into the field, the placeholder text would disappear.



In newer versions, the placeholder text does not disappear until you type a character:



That’s what this function was about; implementing both styles.

-- Darin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130820/a94f07da/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2013-08-20 at 8.29.57 AM.png
Type: image/png
Size: 2301 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130820/a94f07da/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2013-08-20 at 8.32.13 AM.png
Type: image/png
Size: 2169 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130820/a94f07da/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2013-08-20 at 8.31.23 AM.png
Type: image/png
Size: 2585 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130820/a94f07da/attachment-0002.png>


More information about the webkit-dev mailing list