Skip to content

hail2u/abbread

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 

Abbread

Spreads a title attribute of an abbr element

SYNOPSIS

A title attribute of an abbr element is important, but writing title attribute with every abbr element is annoying. This small JavaScript library spreads first abbr element’s title attribute to other same abbr element(s).

For example:

<p><abbr title="HyperText Markup Language">HTML</abbr> is dead, long live <abbr>
HTML</abbr>!</p>

With this library, it is converted to:

<p><abbr title="HyperText Markup Language">HTML</abbr> is dead, long live <abbr
title="HyperText Markup Language">HTML</abbr>!</p>

Love hover.

USAGE

Put dist/abbread.js into head element of your HTML document.

<script defer src="/js/abbread.js"></script>

Don’t forget defer attribute!

LICENSE

MIT

About

Spreads a `title` attribute of an `abbr` element

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published