View Source GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMTreeNode (google_api_content_warehouse v0.3.0)

DOMTreeNode Defines a DOM Node. An instance can contain references to one or more children (of type DOMTreeNode) and one or more attributes. The DOMTreeNode also encapsulates rendering information (if applicable) in the form of references to one or more RenderTreeNodes. Next tag available: 16

Attributes

  • attribute (type: list(GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMTreeNodeAttribute.t), default: nil) -
  • childDomTreeNodeIndex (type: list(integer()), default: nil) - An index per child. Indexes can be used to fetch the DOMTreeNodes from the list maintained by the Document.
  • currentSourceUrl (type: String.t, default: nil) - For elements, the actual url that was used to fetch the image. Note that this field is set only if it is different from the 'src' attribute value.
  • document (type: GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDocument.t, default: nil) - If the node represents an iframe or a frame then document will be set.
  • htmlTagType (type: integer(), default: nil) - Identifies the HTML tag type (IMG, P, DIV, etc). Applicable only for DOM nodes that are representative of html elements. For a list of possible types refer HtmlTagEnum defined in webutil/html/htmltagenum.h.
  • isClickable (type: boolean(), default: nil) - Whether this DOM node responds to mouse clicks. This includes e.g. nodes that have had click event listeners attached via JavaScript as well as e.g. anchor tags that naturally navigate when clicked.
  • name (type: String.t, default: nil) - Name of the node (document, text, comment, div, etc).
  • originUrl (type: String.t, default: nil) - URL of the script, if any, which created or populated this node.
  • referencedResourceIndex (type: list(integer()), default: nil) - List of referenced resource indexes for any resources that this DOM tree node references.
  • renderTreeNodeIndex (type: list(integer()), default: nil) - RenderTreeNode can be looked up from the list of RenderTreeNodes stored in the Document using render_tree_node_index. RenderTreeNode gives rendering information (bounding box, style that was applied, etc). Note: 1. If a DOMTreeNode does not have a RenderTreeNode then it is safe to assume that the DOMTreeNode has no effect on the rendering. DOMTreeNodes for a ,
  • type (type: String.t, default: nil) -
  • value (type: String.t, default: nil) - The node value is applicable for TEXT_NODEs, DOCUMENT_TYPE_NODEs, COMMENT_NODEs, and user input elements such as , and <option>. For DOCUMENT_TYPE_NODEs, the value contains the publicId and SystemId. For input elements, the value reflects the current value in the element at the time the snapshot was taken.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMTreeNode{
    attribute:
      [
        GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMTreeNodeAttribute.t()
      ]
      | nil,
    childDomTreeNodeIndex: [integer()] | nil,
    currentSourceUrl: String.t() | nil,
    document:
      GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDocument.t()
      | nil,
    htmlTagType: integer() | nil,
    isClickable: boolean() | nil,
    name: String.t() | nil,
    originUrl: String.t() | nil,
    referencedResourceIndex: [integer()] | nil,
    renderTreeNodeIndex: [integer()] | nil,
    type: String.t() | nil,
    value: String.t() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.