W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2008

Re: JavaScript and Screen Readers

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Tue, 19 Aug 2008 15:26:43 +0100
Message-ID: <48AAD823.2040203@googlemail.com>
To: Ryan Jean <ryanj@disnetwork.org>
CC: 'David Woolley' <forums@david-woolley.me.uk>, w3c-wai-ig@w3.org

Ryan Jean wrote:
> The funny thing is when I use "document.write()" or "innerHTML", the screen
> reader will read the alt in the img tag but not the text.

What text? Do you mean text inside the img element? The img element has 
an empty content model and shouldn't have any text inside it.

Do you have a reduced test case that shows what you're talking about?

> The only way I
> worked around all this "document.write()" issue is to set everything in a
> textarea tag. The issue with that is it removes all HTML coding and you lose
> images.

I don't really follow how this makes any sense as a workaround.

Sounds like you're getting JAWS to provide a more up-to-date rendition 
of the page by forcing it into forms mode.

--
Benjamin Hawkes-Lewis
Received on Tuesday, 19 August 2008 14:27:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:28 GMT