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.

貢獻者指南