Skip to content

class StyleNode

  • supers: Node

Example:

assert.node_type("style", nil, {
  id = "style (16)",
  fields = {
    "prev (-1)",
    "next (0)",
    "id (1)",
    "subtype (2)",
    "attr (3)",
    "style (4)",
  },
})

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


StyleNode.attr


StyleNode.attr : Node {
    next: Node?,
    prev: Node?,
    id: integer,
    subtype: integer,
    head: Node?,
    attr: Node,
}

A list of attributes.

StyleNode.style


StyleNode.style : string

contains the style