Page MenuHomePhabricator

Edit summary: Use placeholder instead of label
Closed, DeclinedPublic


The edit summary looks a bit nicer if you use a place holder instead of a label (if Browser supports HTML5).


Event Timeline

Subfader raised the priority of this task from to Needs Triage.
Subfader updated the task description. (Show Details)
Subfader updated the task description. (Show Details)
Subfader set Security to None.
Subfader added a subscriber: Subfader.
Glaisher added a subscriber: Glaisher.

Yep. Remove the label and use a placeholder there. but if the browser doesn't support it, only the label should be there. If both placeholder and label are there, it's ugly, imo.

Aklapper triaged this task as Lowest priority.Jan 3 2015, 8:55 PM

Change 182590 had a related patch set uploaded (by Florianschmidtwelzow):
Use placeholder instead of label for Summary input in EditPage.php


Please don't. Replacing textual labels with placeholders is bad for accessibility, especially in larger forms (like this one) or for people born before mainstream computing technology. We didn't do it even for the login form, which is a most obvious UI element, common to every website that has accounts at all. (We did do it for the search box in Vector, a long, long time ago; curiously, many power users prefer the older MonoBook skin.)

Additionally, in this particular case, it makes it impossible to insert additional explanations or links in the appropriate message, and many wikis (such as the English Wikipedia) link to help pages on edit summary there.

Yet another reason not to use a placeholder instead of a label: When you edit a section, the summary is pre-filled with the section title. This would suppress the placeholder.

Very convincing facts, thanks.

Change 182590 abandoned by Florianschmidtwelzow:
Use placeholder instead of label for Summary input in EditPage.php

see task discussion

According to the official HTML5 draft, "The placeholder attribute should not be used as a replacement for a label".