developit / developit/undom

NodeList

オープン
#34 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
690
フォーク
25
PR マージ指標
30日以内にマージされた PR はありません

説明

I tried using this for a unit-test, and ran into some issues with e.g. `childNodes`, which in regular DOM is a [NodeList](https://developer.mozilla.org/en-US/docs/Web/API/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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

README の Project Goals から始め、childNodes と children が現在どのように生成されているかを調査します。NodeList の keys()、values()、entries() メソッドおよび報告されている mutation/liveness の期待値と動作を比較します。完了の条件は、互換性の範囲について明確な判断を下し、文書化された相違点を示すか、範囲を限定した実装変更とテストを行うことです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
web-dev
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。