HTML & CSS
The following element summons a browser tooltip to show up when the mouse is placed over it
<a href="#" title="something useful">Link</a>
But when a line breaks are included into the title attribute, the effects work in IE but not in FireFox
<a href="#" title="something
Is there any way to get it to work in FF? Or is it just another one of Microsoft's esoteric browser innovations?
According to the HTML4 specification, this is how user agents should deal with CDATA attribute values:
- Replace character entities with characters,
- Ignore line feeds,
- Replace each carriage return or tab with a single space.
In theory, you could include a line-feed into your attribute value using an NCR:
<a href="#" title="Something&#10;useful">Link</a>
There's no guarantee that it will work, though.
Did you ever find a solution? I am facing the same problem, three years later.
There is not a problem in the first place with Firefox; it is NOT supposed to cause a linefeed like was stated by Tommy, it is a bug in M$IE.
Furthermore Authors should not declare attribute values with leading or trailing white space in the first damn place so you should never do it anyway.