This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Bug: Accordion Widget invalid IDs with special characters

6 years ago · Last reply by Andrew Misplon 6 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 6 years, 3 months ago

    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.

Have a different question or issue?

Start New Thread