W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2013

Re: Remove "placeholder" attribute from HTML and turn it into a CSS feature

From: Patrick H. Lauke <redux@splintered.co.uk>
Date: Tue, 30 Apr 2013 12:56:53 +0100
Message-ID: <517FB185.2050009@splintered.co.uk>
To: w3c-wai-ig@w3.org
On 30/04/2013 12:06, Ian Yang wrote:
>>From accessibility's view point, "placeholder"s' values are often
> unimportant. And they are never meant to be replacements of <label>
> elements. Inputs fields should always be well described by
> corresponding <label> elements. Even if designers decide to hide
> <label> elements, developers should still ensure <label> elements are
> properly presented to AT's users. Therefore AT's users are basically
> fine without "placeholder" text being hard coded in HTML.

This assumes a perfect world, where developers do the right thing. And 
it assumes a world where designer and developer are not the same, which 
is often not the case. As such, I can understand the rationale, but 
would say it's a dangerous proposition...

> So the proposal here is removing "placeholder" attribute from HTML
> spec, while turning it into a CSS feature. Like the following example:
> input:placeholder {
>      content: "Your name here";
>      }
> textarea:placeholder {
>      content: "Lorem ipsum dolor sit amet...";
>      }

Patrick H. Lauke
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]

www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com | http://flickr.com/photos/redux/
twitter: @patrick_h_lauke | skype: patrick_h_lauke
Received on Tuesday, 30 April 2013 11:57:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:48 UTC