Home>Support>Bug: Accordion Widget invalid IDs with special characters

Bug: Accordion Widget invalid IDs with special characters

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hello there,

we just noted a bug with CSS id namespace in the Accorion Widget.

If you entitle a panel with a string containing an Umlaut (ä, ö, ü – maybe other special characters as well) then this Umlaut gets URL-encoded into the whole HTML attributes (id, aria-controls, aria-labelledby, …).

This causes ids containing special characters that aren’t allowed for CSS selectors like IDs. So it is not possible to access those malformed selectors. It simply doesn’t work. Allowed characters for selectors are just upper and lower case letters, numbers and hyphens – nothing more.

Example:
Accordion Widget panel title is “Testö”. This generates the following HTML:

`[…]

[…]`

Then you cannot access the selector `#accordion-label-Test%c3%b6`.

Could you fix this problem so that no invalid characters will get into selectors?

Many thanks in advance,
– mscholz

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 7 months ago Andrew Misplon
    Hi, I Work Here

    Hi :)

    Thanks for reporting, main reply on WordPress.org.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More