I've come across a strange issue with my code. Here is what I have:
someSelector:after {
content: attr('data-some-data');
/* ... */
}
Initially, everything works perfectly fine (the value is displayed on the screen) until I decide to change this attribute to something else:
document.querySelector('someSelector').dataset.someData = 'some other value';
Oddly enough, the content does not update on the screen even though the DOM explorer clearly shows that the attribute value has been updated.
I attempted to manually set it through the browser console as well, but still no luck.
Interestingly, everything functions correctly in other browsers, except for IE... you know how it goes.
The Burning Question
So here's the million-dollar question: Can I somehow force an update of this value so that it reflects on the screen when altered?