whatwg/html

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

Ouverte

#5 266 ouverte le 10 févr. 2020

 (13 commentaires) (0 réaction) (0 personne assignée)HTML (2 520 forks)batch import
good first issueneeds teststopic: forms

Métriques du dépôt

Stars
 (7 654 étoiles)
Métriques de merge PR
 (Merge moyen 42j 18h) (22 PRs mergées en 30 j)

Description

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.

Guide contributeur