Closed alanmels closed 2 years ago
Tests have proven the issue initially reported for core on https://github.com/backdrop-contrib/paragraphs_jquery_ui_accordion/issues/1 in fact belongs to this project instead.
Creating anchor menu items like #anchor as work as expected on UI, however on browser's console start giving lot's of incidents of the same errors: Uncaught Error: Syntax error, unrecognized expression: a[href*=#faq]
Creating anchor menu items like #anchor as work as expected on UI, however on browser's console start giving lot's of incidents of the same errors:
Uncaught Error: Syntax error, unrecognized expression: a[href*=#faq]
because the javascript contains the following line:
var paragraph = $(accordion_id).find('a[href*="+ thash + "]').closest('h3');
does not escape special characters as recommended on https://api.jquery.com/category/selectors/
Tests have proven the issue initially reported for core on https://github.com/backdrop-contrib/paragraphs_jquery_ui_accordion/issues/1 in fact belongs to this project instead.
because the javascript contains the following line:
var paragraph = $(accordion_id).find('a[href*="+ thash + "]').closest('h3');
does not escape special characters as recommended on https://api.jquery.com/category/selectors/