[whatwg/dom] "If node is a Text node" (#719)

https://dom.spec.whatwg.org/commit-snapshots/23ec6421f47ab629bd14dfc6d4910414dc443d0b/#mutation-algorithms

> If _node_ is a `Text` node, ...

Apparently, per tests and browser behavior, this includes both `Text` and `CDATASection` nodes. While I might say that both are "text nodes", the current spec's typography of "`Text` node" is a bit misleading, implying it would not include CDATA section nodes.

I'd like to suggest that the spec try to be as clear as possible and use either "text node" or (better) "inclusive text node" when referring to both `Text` and `CDATASection` nodes.

Via https://github.com/jsdom/jsdom/pull/2441, where @Zirro remarks that we might not have test coverage for very many other places in the spec that have this problem.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/719

Received on Sunday, 2 December 2018 23:40:44 UTC