mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
web: Add missing CSS.escape calls.
When referring to <div id="my-id" class="my-class">: - my-id is an id - #my-id is a selector - my-class is a class name - .my-class is a selector When an id or a class name is interpolated into a selector, it needs to be escaped with CSS.escape. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
341f6173aa
commit
6199be39da
@@ -267,7 +267,7 @@ export function setup_stream_settings(node) {
|
||||
],
|
||||
callback(name, key) {
|
||||
$(".stream_section").hide();
|
||||
$("." + key).show();
|
||||
$(`.${CSS.escape(key)}`).show();
|
||||
select_tab = key;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user