deborah (
deborah) wrote in
dw_accessibility2010-07-13 12:47 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Title attribute and userpics
There's been a brief but meaty discussion going on in bug 2773 about what we should put in the title attribute of image elements used for userpics. This is only tangentially an accessibility issue: most screenreader users and all keyboard-only users never see the title attribute (screenreader users can configure their screenreaders to read the title attribute, but I've been told this is rare in practice). However, it was a conversation around accessibility which led to some concerns about userpic's use of the title attribute, as it was very difficult for non-screenreader/text-only browser users to have any idea of what descriptive text was for userpics. That descriptive text (the "alt" attribute) was information to which several users wanted easier access.
So what is the "title" attribute? The HTML 4 standard says that
Because of limitations with browsers and screenreaders and their implementation of the attribute, the title attribute is one of the most controversial parts of HTML that I have seen accessibility experts argue about. In practice, almost the only people who will ever see the title attribute our mouse users who are hovering over an image or link. In that case, modern browsers will show the title attribute as a tooltip. (Many used to show the alt attribute if title wasn't set, but I'm not sure if any browsers do so anymore.) Because the information in the attribute isn't available to most screenreader and all keyboard-only users, it's important that the title attribute only be used for information which is accessible in some other fashion as well.
Web accessibility experts will get in knockdown, drag out fights over whether title should just be abolished, alt and title should be identical, or alt and title should be different. Often it comes down to the difference between what the HTML standard says is best practice, and the reality of what actually happens in browsers and screenreaders. In my occasionally humble opinion, Dreamwidth be striking a middle ground: following the standards wherever they help and do not hinder our users.
So what does that mean for us? It does seem that, contrary to common practice, there is a desire among many users to have access to that descriptive information that is provided in the alt text of a userpic. For one thing, that descriptive information often reports the context of an image: the fandom; the character; the pet.
Right now, that title attribute shows the keyword. Just as some users have the desire to see the alt text, other users have expressed the continuing desire to see the keyword, because it shows why the posting user chose that userpic, or how the posting user catalogs his or her userpics. However, there has been some user confusion because the tooltip shows similar but different text from the description in the alt text, which is making it more difficult for non-screenreader users to understand which text is which.
But wait! What about that last piece of information we have about each userpic: the comment! It has also been pointed out that comments, which by convention include icon credits, would also be really useful advisory information to show up in a tooltip.
So after that ridiculously wordy preamble, here's a proposal:
title = "Image keyword: " + $keyword + $description + $comment
In other words, the title, primarily available as a mouse-hover tooltip, should contain the image keyword, the alt text description if available, and the comment if available. On the one hand, this might make for somewhat long hovers. On the other hand, descriptive text shouldn't be getting crazy long anyway.
What do people think? This is clearly a usability design issue primarily for people who use the mouse-hover feature. Again, its accessibility issues are primarily tangential, in how we can potentially expose high-value accessibility features to people who don't need them.
So what is the "title" attribute? The HTML 4 standard says that
This attribute offers advisory information about the element for which it is set.The HTML 5 standard is slightly more informative, saying
The title attribute represents advisory information for the element, such as would be appropriate for a tooltip. On a link, this could be the title or a description of the target resource; on an image, it could be the image credit or a description of the image; on a paragraph, it could be a footnote or commentary on the text; on a citation, it could be further information about the source; and so forth.
Because of limitations with browsers and screenreaders and their implementation of the attribute, the title attribute is one of the most controversial parts of HTML that I have seen accessibility experts argue about. In practice, almost the only people who will ever see the title attribute our mouse users who are hovering over an image or link. In that case, modern browsers will show the title attribute as a tooltip. (Many used to show the alt attribute if title wasn't set, but I'm not sure if any browsers do so anymore.) Because the information in the attribute isn't available to most screenreader and all keyboard-only users, it's important that the title attribute only be used for information which is accessible in some other fashion as well.
Web accessibility experts will get in knockdown, drag out fights over whether title should just be abolished, alt and title should be identical, or alt and title should be different. Often it comes down to the difference between what the HTML standard says is best practice, and the reality of what actually happens in browsers and screenreaders. In my occasionally humble opinion, Dreamwidth be striking a middle ground: following the standards wherever they help and do not hinder our users.
So what does that mean for us? It does seem that, contrary to common practice, there is a desire among many users to have access to that descriptive information that is provided in the alt text of a userpic. For one thing, that descriptive information often reports the context of an image: the fandom; the character; the pet.
Right now, that title attribute shows the keyword. Just as some users have the desire to see the alt text, other users have expressed the continuing desire to see the keyword, because it shows why the posting user chose that userpic, or how the posting user catalogs his or her userpics. However, there has been some user confusion because the tooltip shows similar but different text from the description in the alt text, which is making it more difficult for non-screenreader users to understand which text is which.
But wait! What about that last piece of information we have about each userpic: the comment! It has also been pointed out that comments, which by convention include icon credits, would also be really useful advisory information to show up in a tooltip.
So after that ridiculously wordy preamble, here's a proposal:
title = "Image keyword: " + $keyword + $description + $comment
In other words, the title, primarily available as a mouse-hover tooltip, should contain the image keyword, the alt text description if available, and the comment if available. On the one hand, this might make for somewhat long hovers. On the other hand, descriptive text shouldn't be getting crazy long anyway.
What do people think? This is clearly a usability design issue primarily for people who use the mouse-hover feature. Again, its accessibility issues are primarily tangential, in how we can potentially expose high-value accessibility features to people who don't need them.
no subject
Does it maybe make sense to move some of this to the hover thingy? I wonder if people who like having all that descriptive title text might be happier for it to be in a place where it can be formatted. I suspect that the hover is mostly not accessible to the same people for whom the title text isn't accessible, so I don't think it would be making it less accessible and would only serve to make it more readable for those who can access it.
(You can't access the hover thing on keyboard only and I'm not sure how it works for someone using a screenreader. I haven't given a good description of it; maybe someone else can?)
no subject
*Ponders* There is something to be said about that, something good. For one thing, having both a title attribute and a JavaScript-prompted hover means two pop-ups, which can be a little complex.
For another thing, well I don't think it is right now, that JavaScript pop-up can be made accessible to both (some) screenreader and (some) keyboard-only users. I'm not sure if screenreader users would want access to it, as I can imagine it would be a little distracting. We would probably have to make a test instance in order to ask people to try different ways of working with it. But making it accessible to keyboard-only users could be valuable.
(I did realize as I was writing that some versions of elinks and lynx show the title attribute in certain circumstances, but I figured it was already so wordy I could avoid the long tail in my explanation. Since, as you say, it doesn't change the practicalities. *g*)
no subject
no subject
no subject
I believe that they're not, which would make this potentially problematic.
r
no subject
no subject
no subject
There is nothing in the HTML standard that says what user agents should do for tool tips, and I think it was a real loss when the browsers stopped showing alternative text. It used to be much easier for sighted users to get a hold of it.
no subject
no subject
no subject
Sometimes I am not very bright.
No, you're right, as long as we are keeping hover, that should probably stay in there.
no subject
no subject
no subject
no subject
Wait, it shouldn't? Is there a tutorial for how we should be doing the icon descriptions? Because I have sometimes found myself running up against the character limit, so maybe I'm doing it wrong?
no subject
The key thing to remember is that everything you put in your descriptive text is going to be read aloud in a linear fashion by a screenreader, and the way we use userpics, your icon -- and therefore its description -- might appear 10 times in a thread. Screenreader users can skip ahead of particular elements, but even so, the trick is to strike a balance between sufficiently informative and not-too-long.
Of course, this is more difficult with userpics then with a lot of other web images, because with userpics, we really are trying to convey character, emotion, action, words, etc., in a way that we don't often need to with other web images.
In other words, strike a balance between the information you think is important to convey and brevity.
if you are curious, you might find it informative to load a journal page in an online screenreader to see what it sounds like to you, although of course skilled screenreader users will be much more efficient at moving around the page. (If you use firefox, you could also try using firevox.)
no subject
no subject
I think I used painting, etc. only if that was different to what it would usually be. Like if I just said "a woman blah blah blah" you might assume it was a photo. But it doesn't really matter if it's a photo or a painting, so I can probably ditch it. It's trying to determine what matters that can get tricky. Sometimes I find myself thinking I need to describe every last detail so someone can compose a picture of it, but that's really not necessary. (And I hadn't thought about the fact that it would be repeating the same info over and over if an icon appears multiple times, so I can definitely see how less is more there.)
no subject
I guess you sorta have to figure out what the icon is there to *say* to the reader, and put that in the description - check out Deborah's icon descriptions and you get a great example of this. I think mine are less good, but feel free to look of course :)
no subject
no subject
My understanding of comment vs description is that comment is basically for crediting and context, and description is a textual equivalent of the image. Almost all of the time I would say that the comment will be entirely irrelevant as hover text (again, if I want to know who made an icon, I can go to allpics), and for sighted users (correct me if I'm wrong, but if I understand this post correctly, they're the ones who interface with the hover text almost exclusively?) including the description field of the icon is redundant information.
So, in summary: I strongly favor the status quo. Keep the title attribute "username: $keyword", keep the alt attribute "$description", and keep the $comment field relegated to the allpics page.
no subject
no subject
no subject
While the allpics page is great for browsing a user's icons, it isn't very useful for getting information about a specific icon, especially in the context of an ongoing discussion. And while I'm used to not having that information easily available now, I suspect that, like ajax cut-tags, once I have it I won't want to give it up again!
no subject
Personally, I really, really like the icon keyword being in the title field. But one thing that I have found is that sometimes I want to see the other fields too. But when that happens, I mostly want to see all of them - credits, description *and* all the other keywords for it.
Right now I love that the icon actually links to the icons page - it makes this easier. But it's annoying to have to scroll down the page. Maybe the solution would be to add an anchor to the URL to the specific icon, and add IDs on the icons page to make this possible. I would really, really love that, and it would solve my problem much more than adding new text to the title attribute would.
Alt text is meant for when the picture isn't or can't be displayed, and that's where a description should be for accessibility purposes.
no subject
no subject
no subject
no subject