github / github/markdown-toolbar-element
Bug with unescaped value interpolated into a selector query
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 411
- Fork
- 60
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 6
Mô tả
```
SyntaxError: Failed to execute 'querySelector' on 'Element': '[hotkey="""]' is not a valid selector.
```
https://github.com/github/markdown-toolbar-element/blob/c3630f64cddd29a98bb8b03965e9baa83f585dc4/index.js#L230
Hướng dẫn đóng góp
Hướng nghiên cứu
Read index.js around line 230 and reproduce the reported querySelector failure using a hotkey value containing a quote. Trace how that value is interpolated into the selector; the issue is done when the reported value no longer produces an invalid selector and the behavior is verified.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- frontend
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 58/100