Skip to content
Put title attribute to elements that have text-overflow: ellipsis
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
src
README.md
package.json

README.md

Ellipsis Title

Put title attribute to elements that have text-overflow: ellipsis

SYNOPSIS

A ellipsis-ed element should have title attribute, and this value should be same as its content. However, we are too busy to write title attributes! This library adds title attributes automatically to every element that have text-overflow: ellipsis.

USAGE

Put dist/ellipsis-title.js into head element of your HTML document.

<script defer src="/js/ellipsis-title.js"></script>

Don’t forget defer attribute!

LICENSE

MIT: http://hail2u.mit-license.org/2016

You can’t perform that action at this time.