You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -37,6 +49,52 @@ public function setSelectors($mSelector) {
37
49
}
38
50
}
39
51
52
+
/**
53
+
* Add placeholders for parenthetical/bracketed expressions in selectors which may contain commas that break exploding.
54
+
*
55
+
* This prevents a single selector like `.widget:not(.foo, .bar)` from erroneously getting parsed in setSelectors as
56
+
* two selectors `.widget:not(.foo` and `.bar)`.
57
+
*
58
+
* @param string $sSelectors Selectors.
59
+
* @return array First array value is the selectors with placeholders, and second value is the array of placeholders mapped to the original expressions.
0 commit comments