Options
All
  • Public
  • Public/Protected
  • All
Menu

ParsedObj represents Node (respectively the DOM Element) and its subtree.

remarks

ParsedObj contains original node and an array of ideas. Every item is an array of strings and HTML elements, a full-whitespace string or another ParsedObj.

example

Example ParsedObj contents

{
 node: <p class="chunk">,
 ideas: [
   ["Integer nec odio."],
   " ",
   ["Praesent ", <strong>, ", nibh elementum imperdiet."],
   " ",
   ["Sed cursus ante dapibus diam."],
   " ",
   [ParsedObj],
   " ",

 ]
}

Hierarchy

  • default

Index

Constructors

constructor

  • new default(node: Node, ideas: Idea[], delimiter: string): default
  • Parameters

    • node: Node

      Original Node

    • ideas: Idea[]

      Every item is an array of strings and HTML elements, a full-whitespace string or another ParsedObj.

    • delimiter: string

      Delimiter

    Returns default

Properties

delimiter

delimiter: string

ideas

ideas: Idea[]

node

node: Node

Original Node

Methods

Private ideaItemsAreValid

  • ideaItemsAreValid(items: IdeaPiece[]): boolean

Private listProblemParsedObjIdeas

  • listProblemParsedObjIdeas(ideas: Idea[]): Idea[]

Generated using TypeDoc