Re: [whatwg/dom] Fix and clarify more around CDATASection (#301)

One relevant difference between CDATASection and ShadowRoot is that CDATASection has its own nodeType. So switching on nodeType actually works for ShadowRoot, but not for CDATASection. Since we'll presumably never add a new nodeType, actually spelling out whether CDATASection is included anywhere that Text is mentioned would remove the risk of confusion.

-- 
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/pull/301#issuecomment-241675750

Received on Tuesday, 23 August 2016 09:24:59 UTC