window : global objectdocument : root node. HasdocumentElement (html) , head bodyremoveAttribute()DocumentFragment interface is a lightweight version of document.let fragment = new DocumentFragment();
fragment.append(eleList)
div.appendChild(fragment) //append fragment to DOM
Node: objects that make up DOM tree. Each node has 6 relationships
parentNode firstChild lastChild previousSibling nextSibling childNodes**Element*** versionsNodeList: iterable of nodes. E.g. children (has length)HTMLElement: a node with a specific node type Node.ELEMENT_NODE. It has several subtypes like HTMLInputElementHTMLCollection: iterable of HTMLElements. Returned by document.getElement** methodsNamedNodeMap: iterable of Attr objects = element's attributes. E.g. div.attributesDOMTokenList: set of space separated tokens on attribute. e.g. div.classListNode Codes/ Constants
1 (Node.ELEMENT_NODE)
3 (Node.TEXT_NODE)
8 (Node.COMMENT_NODE)