It feels really weak to use a displayed text as data to build the config.
We will most likely change the innerHTML to something better to read,
or may be just display the icon.
I'd suggest to immediatly switch to use dataset attributes instead.