javascript-tutorial / javascript-tutorial/en.javascript.info

First Paragraph Has an issue

Offen
#3,488 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
HTML
Sterne
25.5k
Forks
4k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I would consider revising the first paragraph.

Mainly this part:

> Isn’t it a bit strange? Why does the handler on <div> run if the actual click was on <em>?

It comes across as infantilizing and momentarily derailed my reading on a topic I was actually wanting to read about. It works well if your target audience is four to six year-olds.

Simply saying something like "this is because they are nested" or similar would do the trick.

I will concede that I am likely not the target audience. I saw the term bubbling, was unfamiliar with it, googled, saw right away from this article that it was talking about propagating events. I will still finish reading the article, since JavaScript is not my forte, but that line was a bit unexpected in an article at this level.

I will also note that the comments, overall, look to be positive, so the article is well received.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Finde den Tutorialartikel, der den zitierten ersten Absatz enthält, und lies die umgebende Erklärung zum Event-Bubbling. Überarbeite den Absatz so, dass die verschachtelten Elemente direkt erklärt werden, ohne die fragliche Formulierung zu verwenden, und prüfe anschließend, dass der Artikel weiterhin korrekt und gut lesbar ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.