whatwg/html

"determine the value of a named property" should not imply a new object each time

Offen

#5.266 geöffnet am 10.02.2020

 (13 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (2.520 Forks)batch import
good first issueneeds teststopic: forms

Repository-Metriken

Stars
 (7.654 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 42T 18h) (22 gemergte PRs in 30 T)

Beschreibung

Some people seem to read https://html.spec.whatwg.org/multipage/forms.html#dom-form-nameditem as implying that a new nodelist should be returned each time when there are multiple matching elements. That's not the intent, I assume, and it might be worth clarifying the spec to make it clear.

All browsers I tested (Firefox, Chrome, Safari) return the same nodelist on multiple accesses.

Contributor Guide