Thanx for the explanation.
In the demo at:
http://jqueryjs.googlecode.com/svn/trunk/plugins/searchField/index.html
the first password field doesn't gain focus when tabbing from the second
field labeled "with initial value"; very odd.
Otherwise, it works as well as the previous example.
Seems like this is the right implementation, as it really is a purely
visual effect. It just moves a text label above the input field, which
is useful in space-constrained layouts.
Here is an implementation that modifies the input to "hold" the label:
http://jqueryjs.googlecode.com/svn/trunk/plugins/searchField/index.html
Probably way more obtrusive, while the visual effect is very similar.
Jörn
On Fri, Feb 27, 2009 at 12:25 AM, Rich Caloggero <
r...@mit.edu> wrote:
>
> Hmm, the watermark must be a purely visual effect, because all the screen
> reader shows me is the login form. As each field gains focus, I hear what
> you might expect:
>
> * the text of the label is spoken, then the value (if any) of the actual
> input element is read
> * the text inside the legend is spoken before the type and value of each
> field
>
> I cannot see the screen at all, so I'm just kind of curious what this
> watermark thing is supposed to accomplish; what am I missing here?
> -- rich
>
> ----- Original Message -----
> From: "Jörn Zaefferer" <
joern.z...@googlemail.com>
> To: <
jquer...@googlegroups.com>
> Sent: Thursday, February 26, 2009 4:48 PM
> Subject: Re: Watermark a11y
>
>
>
> I've created an actual demo:
>
http://jqueryjs.googlecode.com/svn/trunk/plugins/searchField/demo.html
>
> This should give you a better idea.
>
> JÃf¶rn
>
> On Thu, Feb 26, 2009 at 10:13 PM, Rich Caloggero <
r...@mit.edu> wrote:
>>
>> Not sure what this is supposed to show here, but when testing with a
>> screen
>> reader, I do hear a bunch of fields labeled with the string "search".
>>
>> Sorry for my ignorance, but what exactly is a watermark in this context?
>>
>> -- Rich
>>
>>
>> ----- Original Message -----
>> From: "JÃf¶rn Zaefferer" <
joern.z...@googlemail.com>
>> To: <
jquer...@googlegroups.com>
>> Sent: Thursday, February 26, 2009 3:21 PM
>> Subject: Re: Watermark a11y
>>
>>
>>
>> I've written a first experimental implementation using labels:
>>
http://jqueryjs.googlecode.com/svn/trunk/plugins/searchField/watermark-test.html
>>
>> I agree with Chris' arguments for using a label element. Also the
>> technical implementation is quite clean and doesn't require
>> workarounds for handling form submits or password fields. It also
>> enables animation to hide/show the watermark. The demo uses fades, but
>> slides are quite interesting, too.
>>
>> I'm not sure about handling ARIA. A label element with a proper
>> for-attribute seems to be fine to me, is there any value added by
>> adding aria-label or aria-labelledby (or both) attributes?
>>
>> JÃffÃ,¶rn
>>> On Feb 20, 2:49 pm, JÃffÃ,¶rn Zaefferer
>>>> JÃffÃ,¶rn
>>>
>>> I have to think about this some more, but this sounds like a good
>>> place to use the aria-label attribute (
http://www.w3.org/WAI/PF/aria/
>>> #aria-label).
>>>
>>> The aria spec favours using aria-labelledby over aria-label (http://
>>>
www.w3.org/WAI/PF/aria/#aria-labelledby). Ãf, Note that aria-labelledby
>>> references text that is "...visible on screen" and will not change,
>>> e.g., text in a <label> element. Ãf, But, the display in the watermark
>>> example does change (to the search text). Ãf, Even so, the contents of
>>> the <label> doesn't; it is hidden. Ãf, Hiding it can be done by
>>> positioning it off-screen, as Chris suggested, or setting its display
>>> to "none", or, perhaps, its visibility to "hidden".
>>>
>>> That sounds relatively complicated. Ãf, Hence, this seems to be a good
>>> argument for using the aria-label attribute. Ãf, The text doesn't