Module pagegraph::types

source ·

Enums

  • Represents the type of any PageGraph edge, along with any associated type-specific data. Edges in PageGraph represent actions taken by some actor in the page (e.g., a JavaScript code unit), being performed on some other element in the page (e.g., a resource being fetched). Edges are outgoing from the actor, and incoming to the actee.
  • Represents the type of any PageGraph node, along with any associated type-specific data. Nodes in PageGraph (mostly) represent either Actors (things that do things) or Actees (things that have things done to them).

Type Definitions

  • A string encoding the name of an attribute on an HTML tag (e.g., "href" for the target of an anchor tag, or "src" for the source URL of the image presented in an image tag).
  • HtmlElementId represents the unsigned integer identifier that Blink uses internally for each HTML element created during the execution of a Web page. Note that values are unique (and monotonically increasing) for all documents executing in the same process. This set of values are shared across HTML elements (e.g., <a>, <img>), text nodes, and white space nodes.
  • A string encoding the name of an HTML tag (e.g., "a" for an anchor tag, or "img" for an image tag).
  • ScriptId represents the unsigned integer identifier V8 uses for tracking each JavaScript code unit compiled and executed during the execution of a page. Note that values are monotonically increasing for all scripts executing, including scripts defined inline in <script> tags, “classic” and “module” scripts fetched via the <script> element’s src property, or scripts otherwise passed to the JavaScript compiler (e.g., eval, strings provided as the first argument to setInterval, attributes like “onclick” defined in HTML elements, etc.).
  • A string encoding a URL. May either be a full URL (protocol, host, port. path, etc.) or a relative one, depending on the context in the graph.