1.0.0 • Published 8 years ago
pseudo-content v1.0.0
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
1.0.0
8 years ago