Lines Matching refs:treeAdapter
9 treeAdapter: TreeAdapter<T>
11 switch (treeAdapter.getNamespaceURI(element)) {
27 treeAdapter: TreeAdapter<T>
34 if (treeAdapter.isCommentNode(node)) {
35 str += `<!-- ${treeAdapter.getCommentNodeContent(node)} -->\n`;
36 } else if (treeAdapter.isTextNode(node)) {
37 str += `"${treeAdapter.getTextNodeContent(node)}"\n`;
38 } else if (treeAdapter.isDocumentTypeNode(node)) {
39 const publicId = treeAdapter.getDocumentTypeNodePublicId(node);
40 const systemId = treeAdapter.getDocumentTypeNodeSystemId(node);
42 str += `<!DOCTYPE ${treeAdapter.getDocumentTypeNodeName(node) || ''}`;
50 const tn = treeAdapter.getTagName(node);
52 str += `<${getElementSerializedNamespaceURI(node, treeAdapter) + tn}>\n`;
55 const serializedAttrs = treeAdapter.getAttrList(node).map((attr: Token.Attribute) => {
69 … if (tn === html.TAG_NAMES.TEMPLATE && treeAdapter.getNamespaceURI(node) === html.NS.HTML) {
72 node = treeAdapter.getTemplateContent(node);
75 str += serializeNodeList(treeAdapter.getChildNodes(node), childrenIndent, treeAdapter);
84 treeAdapter: TreeAdapter<T>
86 return serializeNodeList(treeAdapter.getChildNodes(rootNode), 0, treeAdapter);