Make type and mode explicit concepts of documents. Fixes https://www.… · whatwg/dom@8f812e6

Add a description of Make type and mode explicit concepts of documents. Fixes https://www.… · whatwg/dom@8f812e6