mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
parent
e34e1598ca
commit
0a484e7586
@ -17,7 +17,7 @@ const TRANSITION_END = 'transitionend'
|
|||||||
const parseSelector = selector => {
|
const parseSelector = selector => {
|
||||||
if (selector && window.CSS && window.CSS.escape) {
|
if (selector && window.CSS && window.CSS.escape) {
|
||||||
// document.querySelector needs escaping to handle IDs (html5+) containing for instance /
|
// document.querySelector needs escaping to handle IDs (html5+) containing for instance /
|
||||||
selector = selector.replaceAll(/#([^\s"#']+)/g, (match, id) => '#' + CSS.escape(id))
|
selector = selector.replace(/#([^\s"#']+)/g, (match, id) => '#' + CSS.escape(id))
|
||||||
}
|
}
|
||||||
|
|
||||||
return selector
|
return selector
|
||||||
|
Loading…
Reference in New Issue
Block a user