HtmlrenderWebkitHeadlessProtoDOMTreeNode

AI Overview😉

  • The potential purpose of this module is to analyze and understand the structure and content of a web page by parsing its HTML and DOM (Document Object Model) tree. This allows Google to better comprehend the page's layout, elements, and relationships between them, which can improve search result relevance and ranking.
  • This module could impact search results by allowing Google to: Better understand page structure and content, leading to more accurate indexing and retrieval. Identify and prioritize important page elements, such as clickable areas or images. Improve rendering and display of search results, including snippets and thumbnails. Enhance user experience by providing more relevant and informative search results.
  • To be more favorable for this function, a website can: Ensure clean and semantic HTML structure, making it easier for Google to parse and understand the page. Use descriptive and accurate attribute values, such as 'alt' tags for images and 'title' tags for links. Implement clear and consistent naming conventions for HTML elements and IDs. Optimize page loading and rendering, ensuring that important elements are quickly accessible and visible.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.HtmlrenderWebkitHeadlessProtoDOMTreeNode (google_api_content_warehouse v0.4.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

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@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

Link to this function

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.