You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm using the accordion from your plugin and it is perfect!
I think I found a bug: in L244 of script.js the accordion_id is created using the random function from Math, getting a string which represents a number in base 36: accordion_id = Math.random().toString(36).substr(2, 9). This string sometimes starts with a number and this is forbidden in the HTML specification: when this happens the accordion doesn't work.
I tried to solve this bug modifying that line in this way accordion_id = 'e_' + Math.random().toString(36).substr(2, 9) and it works!
Thanks for your work,
Manuele
The text was updated successfully, but these errors were encountered:
Miro-Collas
added a commit
to Miro-Collas/dokuwiki-plugin-bootswrapper
that referenced
this issue
Apr 25, 2024
Hi! I'm using the accordion from your plugin and it is perfect! I think I found a bug: in L244 of script.js the accordion_id is created using the random function from Math, getting a string which represents a number in base 36: accordion_id = Math.random().toString(36).substr(2, 9). This string sometimes starts with a number and this is forbidden in the HTML specification: when this happens the accordion doesn't work. I tried to solve this bug modifying that line in this way accordion_id = 'e_' + Math.random().toString(36).substr(2, 9) and it works!
Hi! I'm using the accordion from your plugin and it is perfect!
I think I found a bug: in L244 of script.js the accordion_id is created using the random function from Math, getting a string which represents a number in base 36:
accordion_id = Math.random().toString(36).substr(2, 9)
. This string sometimes starts with a number and this is forbidden in the HTML specification: when this happens the accordion doesn't work.I tried to solve this bug modifying that line in this way
accordion_id = 'e_' + Math.random().toString(36).substr(2, 9)
and it works!Thanks for your work,
Manuele
The text was updated successfully, but these errors were encountered: