[8] Node インターフェイスの
insertBefore
メソッドは、指定した節点を基準となる節点の直前 (直接の兄)
として挿入することを指示するものです。
[1]
DOM水準1 SE と DOM水準2とDOM水準3によれば、
newChild の parentNode
が読取専用なら NO_MODIFICATION_ALLOWED_ERR となります。
[2]
DocumentFragment を
newChild としたとき何が返されるのかよくわかりません。
[3]
ownerDocument が
null
の DocumentType
を newChild としたときどうなるのかよくわかりません。
[4] DOM水準3によると自分の前に挿入しようとしたら結果は実装依存です。 (名無しさん)
[5]
DOM水準3によると Document
に2つ目の DocumentType や
Element を appendChild
しようとするのは HIERARCHY_REQUEST_ERR です。
(名無しさん)
[6]
>>5 詳細は appendChild
を参照。
(名無しさん)
[7]
DOM水準2正誤表とDOM水準3によると自分に自分を
appendChild しようとしたら
HIERARCHY_REQUEST_ERR です。
[10] Web DOM Core を経て、 DOM Standard で改めて定義されました。
[11] Editorial: synchronize with the DOM Standard · whatwg/html@21c6ec7 ( 版) <https://github.com/whatwg/html/commit/21c6ec77594eb89b836d4872222f5916910967fd>
[12] Add [CEReactions] annotations to mutating methods · whatwg/dom@3cd02d1 ( 版) <https://github.com/whatwg/dom/commit/3cd02d139c159a31fbb400e03932652c72fc7812>