mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-23 16:06:45 +00:00
fix: URL hash should be escaped when used as selector
This commit is contained in:
parent
3bacdb7c87
commit
d453adde07
|
@ -645,7 +645,7 @@ class TabberBuilder {
|
|||
await this.createHeader();
|
||||
await this.createIndicator();
|
||||
|
||||
const activeTab = this.tablist.querySelector( `#tab-${ urlHash }` ) || this.tablist.firstElementChild;
|
||||
const activeTab = this.tablist.querySelector( `#tab-${ CSS.escape( urlHash ) }` ) || this.tablist.firstElementChild;
|
||||
TabberAction.setActiveTab( activeTab );
|
||||
TabberAction.updateHeaderOverflow( this.tablist );
|
||||
|
||||
|
|
Loading…
Reference in a new issue