Feature to add the "title" attribute to anchors (for HTML accessibility)

lomz - November 17, 2008 - 09:36
Project:Link
Version:6.x-2.8
Component:User interface
Category:feature request
Priority:normal
Assigned:jcfiala
Status:needs review
Issue tags:accessibility
Description

Would it be possible to implement an extra text-field in the link-field so that I can set title="" in addition to >link-text and href=""?

#1

sijuwi - November 20, 2008 - 16:38

I'd like to know this too, seems to me of primary importance from an accessibility point of view1

#2

no2e - December 3, 2008 - 05:59

+1

#3

Paisible - February 17, 2009 - 10:29

Yes, it would be great !

#4

diceboy666 - February 23, 2009 - 22:11

I need this functionality as well. Any plans? Can anyone point me in the right direction to start?

#5

lomz - March 7, 2009 - 12:18

Any progress?

#6

thePanz - March 19, 2009 - 15:32

Hi, I needed that feature (for a standard HTML and accessibility reasons) and I implemented it! :)
Try and review this patch!

Would you like to say "thanks" to me? send me a beer! ;)

AttachmentSize
link-add_anchor_title_attribute.patch 1.94 KB

#7

thePanz - March 19, 2009 - 15:34
Title:Be able to set title=""» Feature to add the "title" attribute to anchors (for HTML accessibility)

#8

lomz - March 19, 2009 - 18:53

How do I use your patch?
(After having added it successfully, of course...)

#9

thePanz - March 19, 2009 - 20:26

go to your widget options, at the bottom you'll find the "HTML link title" setting.
For now it's really simple. it's a widget-setting, not an instance data. So you'll provide a text for all fields (you can use also tokens).

Regards

#10

lomz - March 20, 2009 - 18:02

So what text do I provide?

#11

mgifford - April 4, 2009 - 12:44

adding accessibility tag

#12

thePanz - April 4, 2009 - 13:26
Status:active» needs review

@lomz: my use-case is pretty simple: I have a page that represents an "Association" webpage. Page owner can set its own external web url with Link field. Note that I'm using Tokens module.

So I type in my widget "html title" this string:

"Visit the [title] website"

In my document the (single) link will have the html-title setted to (for the page "MyAssociationNode") the following text automatically displayed:

"Visit the MyAssociationNode website"

Hope this helps

#13

lomz - April 8, 2009 - 05:07

Thanks, will test

#14

Summit - November 12, 2009 - 09:19
Version:6.x-2.5» 6.x-2.8

This was a wrong comment, sorry guys, greetings, Martijn

#15

AntiHero118 - November 11, 2009 - 21:59

Has this feature been added? I upgraded to link 2.8 for 6.x but, I still cannot add the title tags anywhere. I need this because my content will not display properly unless my views Style is Unformatted, and my Row Style is Fields so I can't use content templates to achieve this another way.

Really need some help on this.

Cheers

- Jared

#16

mgifford - November 12, 2009 - 14:23

Just for clarification, adding a title attribute isn't necessarily going to increase the accessibility of a link.

Most assistive technology users don't enable the reading of title attributes as they usually aren't helpful.

Often the information in them is redundant.

#17

AntiHero118 - November 12, 2009 - 18:23

In my case the information contained within the title attribute tag for the link must be included because it is required for vision impaired users who use screen readers, the information is relevant to the content I'm linking to.

This is a very basic feature of any link, and I don't understand why it can't be specified when adding the link name and link url.

I'm really struggling to get this issue resolved.

Cheers

- Jared

#18

mgifford - November 12, 2009 - 18:47

I'm not blind but my staff person who is did question the logic of inserting title tags for vision impaired users.

What standard are you trying to reach? If it's WCAG 2.0 then I don't think that title tags are the right approach either.

#19

AntiHero118 - November 12, 2009 - 19:07

Though, I'm not exactly sure what standard is trying to be achieved here, I have been instructed that they MUST contain these title tags.

I am only trying to comply with what I have been required to do.

Cheers

- Jared

#20

jcfiala - November 12, 2009 - 20:39
Assigned to:Anonymous» jcfiala

I'm planning to put a little time in on link this weekend, and I'll have a look at this patch and see about including it on the 2.9.

#21

mgifford - November 14, 2009 - 03:19

Might be worth asking why.

As you can see in this issue here, there can also be problems with adding titles to links if they don't add useful information.

 
 

Drupal is a registered trademark of Dries Buytaert.