E-mail List Archives
Thread: <Location> tags and ALT attributes
Number of posts in this thread: 3 (In chronological order)
From: J. B-Vincent
Date: Tue, Aug 03 2010 6:45AM
Subject: <Location> tags and ALT attributes
No previous message | Next message →
I recently ran across the following code as part of a Java script that cycles through displaying different pictures:
<homeHeading>
<location>images/urthere/heading1.jpg</location>
<alt>First picture</alt>
<linkPath>none</linkPath>
</homeHeading>
Naturally, using <alt> as a tag rather than an attribute isn't working. However, I'm not finding any information to tell me what would work. Any suggestions?
Thanks--
Jane Vincent, Center for Accessible Technology
From: E.J. Zufelt
Date: Tue, Aug 03 2010 7:00AM
Subject: Re: <Location> tags and ALT attributes
← Previous message | Next message →
This looks like XML data storage to me, not meant to be rendered as it is by the browser, but used by the JS as data for what it is doing.
Just a guess obviously
Everett Zufelt
http://zufelt.ca
Follow me on Twitter
http://twitter.com/ezufelt
View my LinkedIn Profile
http://www.linkedin.com/in/ezufelt
On 2010-08-03, at 8:43 AM, J. B-Vincent wrote:
> I recently ran across the following code as part of a Java script that cycles through displaying different pictures:
>
> <homeHeading>
>
> <location>images/urthere/heading1.jpg</location>
>
> <alt>First picture</alt>
>
> <linkPath>none</linkPath>
>
> </homeHeading>
>
> Naturally, using <alt> as a tag rather than an attribute isn't working. However, I'm not finding any information to tell me what would work. Any suggestions?
>
> Thanks--
>
> Jane Vincent, Center for Accessible Technology
>
>
>
>
>
From: Jukka K. Korpela
Date: Tue, Aug 03 2010 10:24AM
Subject: Re: <Location> tags and ALT attributes
← Previous message | No next message
E.J. Zufelt wrote:
> This looks like XML data storage to me,
Stuff like <homeHeading> is XML, not HTML. Or in theory it could be SGML or
some other markup, but surely not HTML. No guesswork is needed for this.
Whether it is "data storage" in some sense is something we cannot know.
> not meant to be rendered as
> it is by the browser,
Obviously, generic XML cannot be rendered "as it is" by a web browser, but
it might be rendered with the aid of a CSS style sheet. In this case that's
improbable.
> but used by the JS as data for what it is doing.
"The JS"? There are dozens of ways to play with XML, but (mere) JavaScript
isn't among the most productive ways.
The OP wrote:
"I recently ran across the following code as part of a Java script that
cycles through displaying different pictures".
But the code posted isn't JavaScript, it's markup.
> Just a guess obviously
Apparently.
But what's the accessibility issue here? The OP should at least post a URL
of a live demo, and explain how this all relates to web accessibility.
--
Yucca, http://www.cs.tut.fi/~jkorpela/