github/markdown-toolbar-element

Bug with unescaped value interpolated into a selector query

mislav opened this issue · 0 comments

SyntaxError: Failed to execute 'querySelector' on 'Element': '[hotkey="""]' is not a valid selector.

const button = toolbar.querySelector(`[hotkey="${event.key}"]`)