Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Inconsistent selectstart event timing and prevention capability

Abierto
#355 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
html
Área
web-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
HTML
Estrellas
49
Forks
30
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de w3c/selection-api

Todos los issues de w3c/selection-api

Issues similares

Más issues de Web Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.