Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

NodeList

未關閉
#34 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
javascript
領域
web-dev

研究方向

從 README 的 Project Goals 開始,檢查目前如何產生 childNodes 和 children。將其行為與 NodeList 的 keys()、values() 和 entries() 方法,以及已回報的 mutation/liveness 預期進行比較。完成的要求是明確決定相容性範圍,並提供已記錄的差異,或進行範圍明確的實作變更並加入測試。

由索引模型根據 Issue 內容生成。

描述

I tried using this for a unit-test, and ran into some issues with e.g. childNodes, which in regular DOM is a NodeList and not just an Array, which is missing, for example, the keys(), values() and entries() iterator methods.

I can foresee issues as well with e.g. children being a plain Array created by filtering childNodes - whereas, in regular DOM, mutating the childNodes of the parent that generated the children collection, would cause the iterator to reflect those changes.

Maybe this is "by design", favoring simplicity over correctness?

If so, that isn't clear from the "Project Goals" stated in the README right now - it doesn't seem to imply that this deviates from DOM in terms of more than features.

Lacking features is a matter of scope - but incompatibilities probably ought to be designated in the documentation?

主要語言
JavaScript
星號
689
分支
25
PR 合併指標
30 天內沒有已合併 PR

環境準備

我們還沒有檢查這個專案的環境設定檔。先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

developit/undom 的其他 Issue

查看 developit/undom 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。