whatwg/html

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

Open

#5,266 opened on Feb 10, 2020

View on GitHub
 (11 comments) (0 reactions) (0 assignees)HTML (7,654 stars) (2,520 forks)batch import
good first issueneeds teststopic: forms

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.

Contributor guide