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

No definition of hidden selections

Đang mở
#94 3 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
html
Lĩnh vực
documentation

Hướng nghiên cứu

Start at the Selection API specification section covering selection visibility and compare the Chrome example in the issue with the existing terminology. Add a definition of hidden selections based on the proposed wording, then verify that the definition explains when a non-empty selection may be hidden and why.

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

Mô tả

Compatibility

Chrome sometimes hides selections.

For example:

<input id="field" type="text">
<script>
let i = 0;
document.addEventListener("selectionchange", function() {
  i++;
  console.log(`Selection changed: ${i}.`);
});
field.focus(); // Creates the selection.
field.blur();  // Hides the selection.
field.focus(); // Shows the hidden selection.
</script>

Hidden selections are not yet defined so I suggest we add something like:

"A hidden selection is non-empty but non-visible selection. The browser may choose to hide selections that users cannot interact with. Hiding is a way for the browser to avoid clearance (when a selection is hid) and recreation (when a selection is repainted)."

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ề Documentation

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.