Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Inconsistent selectstart event timing and prevention capability

Đang mở
#355 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
html
Lĩnh vực
web-dev

Hướng nghiên cứu

Start by reading the selectstart specification linked in the issue and the original Chromium issue 40718667. Compare the reported Blink/WebKit and Gecko timing and prevention behaviors, then clarify which timing and preventDefault effects the specification should require.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

This was originally filed as a https://issues.chromium.org/40718667.

On investigation, I found two behaviors:

Browser Behavior
blink / webkit Fired on mousedown.
gecko Fired when mouse moves starting a selection range.

I'm not sure if the selectstart specification clearly indicates one behavior is correct. Regardless though, given we don't have consistency we can probably go either way. One implication of the difference is that on browsers which fire on mousedown if you call preventDefault:

  • you can prevent your previous selection from changing, and
  • you can prevent inserting a cursor into a contenteditable from succeeding.

What do we expect the behavior to be?

Ngôn ngữ chính
HTML
Star
49
Fork
30
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của w3c/selection-api

Tất cả issue của w3c/selection-api

Issue tương tự

Thêm issue về Web Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.