1.0.0 • Published 8 years ago

pseudo-content v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Pseudo-content

Read the content of a pseudo-element.

Install

bower install pseudo-content

Use

#foo:before {
  content: 'bar';
}
var foo = document.getElementById('foo'),
    fooPseudoContent = pseudoContent(foo, 'before');

console.log(fooPseudoContent.get()); // bar
console.log(fooPseudoContent.is('bar')); // true