[w3c/selection-api] Throw InvalidNodeType on DocumentType nodes (#118)

Various methods that take a node and offset are specified as throwing IndexSize if the offset exceeds the node's length.
By WPT tests and by analogy with Range methods, these also need to throw InvalidNodeType if the node is a DocumentType, and InvalidNodeType is the condition to check first for cases where both apply.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/118

Received on Saturday, 1 February 2020 21:25:14 UTC