whatwg/html

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

Aperta

#5266 aperta il 10 feb 2020

 (13 commenti) (0 reazioni) (0 assegnatari)HTML (2520 fork)batch import
good first issueneeds teststopic: forms

Metriche repository

Star
 (7654 stelle)
Metriche merge PR
 (Merge medio 42g 18h) (22 PR mergiate in 30 g)

Descrizione

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.

Guida contributor