[whatwg] Question: rel="help"

Ian Hickson ian at hixie.ch
Thu Jan 26 15:03:49 PST 2012


On Thu, 29 Sep 2011, Schalk Neethling wrote:
> 
> Question, would an element with rel="help" and a title="Help text" make 
> sense and be valid as a JavaScript hook for tooltips?
> 
> Does not match the usage as described by the WHAT-WG 
> (http://developers.whatwg.org/links.html#link-type-help) exactly, but 
> close enough?

On Thu, 29 Sep 2011, Anne van Kesteren wrote:
> 
> If there is no actual hyperlink, using a link relation does not make 
> sense.

Indeed.


On Thu, 29 Sep 2011, Schalk Neethling wrote:
> 
> I heard some mention of using the data-* attributes so, something like: 
> <a href="" data-tooltip="Some help text"></a>
> 
> or
> 
> <input type="text" data-tooltip="Some help text" />
> 
> Would you agree that this is the better option?

If what you want is a tooltip, then the title="" attribute is probably 
your best bet. No need for any scripting.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list