puppeteer/new-docs/puppeteer.protocol.dom.node.md
2020-07-13 14:01:35 +01:00

48 lines
4.7 KiB
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [DOM](./puppeteer.protocol.dom.md) &gt; [Node](./puppeteer.protocol.dom.node.md)
## Protocol.DOM.Node interface
DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.
<b>Signature:</b>
```typescript
export interface Node
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [attributes](./puppeteer.protocol.dom.node.attributes.md) | string\[\] | Attributes of the <code>Element</code> node in the form of flat array <code>[name1, value1, name2, value2]</code>. |
| [backendNodeId](./puppeteer.protocol.dom.node.backendnodeid.md) | [BackendNodeId](./puppeteer.protocol.dom.backendnodeid.md) | The BackendNodeId for this node. |
| [baseURL](./puppeteer.protocol.dom.node.baseurl.md) | string | Base URL that <code>Document</code> or <code>FrameOwner</code> node uses for URL completion. |
| [childNodeCount](./puppeteer.protocol.dom.node.childnodecount.md) | [integer](./puppeteer.protocol.integer.md) | Child count for <code>Container</code> nodes. |
| [children](./puppeteer.protocol.dom.node.children.md) | [Node](./puppeteer.protocol.dom.node.md)<!-- -->\[\] | Child nodes of this node when requested with children. |
| [contentDocument](./puppeteer.protocol.dom.node.contentdocument.md) | [Node](./puppeteer.protocol.dom.node.md) | Content document for frame owner elements. |
| [distributedNodes](./puppeteer.protocol.dom.node.distributednodes.md) | [BackendNode](./puppeteer.protocol.dom.backendnode.md)<!-- -->\[\] | Distributed nodes for given insertion point. |
| [documentURL](./puppeteer.protocol.dom.node.documenturl.md) | string | Document URL that <code>Document</code> or <code>FrameOwner</code> node points to. |
| [frameId](./puppeteer.protocol.dom.node.frameid.md) | [Page.FrameId](./puppeteer.protocol.page.frameid.md) | Frame ID for frame owner elements. |
| [importedDocument](./puppeteer.protocol.dom.node.importeddocument.md) | [Node](./puppeteer.protocol.dom.node.md) | Import document for the HTMLImport links. |
| [internalSubset](./puppeteer.protocol.dom.node.internalsubset.md) | string | <code>DocumentType</code>'s internalSubset. |
| [isSVG](./puppeteer.protocol.dom.node.issvg.md) | boolean | Whether the node is SVG. |
| [localName](./puppeteer.protocol.dom.node.localname.md) | string | <code>Node</code>'s localName. |
| [name](./puppeteer.protocol.dom.node.name.md) | string | <code>Attr</code>'s name. |
| [nodeId](./puppeteer.protocol.dom.node.nodeid.md) | [NodeId](./puppeteer.protocol.dom.nodeid.md) | Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client. |
| [nodeName](./puppeteer.protocol.dom.node.nodename.md) | string | <code>Node</code>'s nodeName. |
| [nodeType](./puppeteer.protocol.dom.node.nodetype.md) | [integer](./puppeteer.protocol.integer.md) | <code>Node</code>'s nodeType. |
| [nodeValue](./puppeteer.protocol.dom.node.nodevalue.md) | string | <code>Node</code>'s nodeValue. |
| [parentId](./puppeteer.protocol.dom.node.parentid.md) | [NodeId](./puppeteer.protocol.dom.nodeid.md) | The id of the parent node if any. |
| [pseudoElements](./puppeteer.protocol.dom.node.pseudoelements.md) | [Node](./puppeteer.protocol.dom.node.md)<!-- -->\[\] | Pseudo elements associated with this node. |
| [pseudoType](./puppeteer.protocol.dom.node.pseudotype.md) | [PseudoType](./puppeteer.protocol.dom.pseudotype.md) | Pseudo element type for this node. |
| [publicId](./puppeteer.protocol.dom.node.publicid.md) | string | <code>DocumentType</code>'s publicId. |
| [shadowRoots](./puppeteer.protocol.dom.node.shadowroots.md) | [Node](./puppeteer.protocol.dom.node.md)<!-- -->\[\] | Shadow root list for given element host. |
| [shadowRootType](./puppeteer.protocol.dom.node.shadowroottype.md) | [ShadowRootType](./puppeteer.protocol.dom.shadowroottype.md) | Shadow root type. |
| [systemId](./puppeteer.protocol.dom.node.systemid.md) | string | <code>DocumentType</code>'s systemId. |
| [templateContent](./puppeteer.protocol.dom.node.templatecontent.md) | [Node](./puppeteer.protocol.dom.node.md) | Content document fragment for template elements. |
| [value](./puppeteer.protocol.dom.node.value.md) | string | <code>Attr</code>'s value. |
| [xmlVersion](./puppeteer.protocol.dom.node.xmlversion.md) | string | <code>Document</code>'s XML version in case of XML documents. |