Use the data-title attribute instead of title .
<a href="#" data-title="This is some information for our tooltip." class="tooltip"><span title="More">CSS3 Tooltip</span></a>
And, extract the contents of this attribute into your css.
content: attr(data-title);
EDIT:
If you have no control over the title attribute, you can remove them at run time using JavaScript.
var tooltipElements = Array.prototype.slice.call(document.querySelectorAll('.tooltip')); tooltipElements.forEach(replaceTitleWithDataTitle); function replaceTitleWithDataTitle(element) { var title = element.getAttribute('title'); element.removeAttribute('title'); element.setAttribute('data-title', title || ''); }
source share