whatwg/html

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

开放

#5,266 创建于 2020年2月10日

 (13 条评论) (0 个反应) (0 位负责人)HTML (2,520 个派生)batch import
good first issueneeds teststopic: forms

仓库指标

星标
 (7,654 个星标)
PR 合并指标
 (平均合并 42天 18小时) (30 天内合并 22 个 PR)

描述

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.

贡献者指南