finalPaint() {
    let finalHtmlCode = ''

    const children = this.#collectedElements[0].getElements()
    const containerElement = this.#paintorWrapper.containerElement

    appendChildrenToElement(containerElement, children)

    if (this.#global instanceof VirtualDocument)
      finalHtmlCode = containerElement.paintChildren()

    // Reset
    this.#collectedElements = [new ElementsCollector()]

    return finalHtmlCode
  }
/**
   * Browser mode: Append the DOM elements at level 0 to the container element
   * <br>
   * Server mode: Generate HTML code of the elements at level 0
   *
   * @return {string}
   * Browser mode: Empty string
   * <br>
   * Server mode: The final HTML code
   */
Browser mode: Append the DOM elements at level 0 to the container element

Server mode: Generate HTML code of the elements at level 0

@return {string}
Browser mode: Empty string

Server mode: The final HTML code
Browser mode : Append the DOM elements at level 0 to the container element Server mode : Generate HTML code of the elements at level 0 @return { string } Browser mode : Empty string Server mode : The final HTML code
finalPaint() {
    let finalHtmlCode = ''
    const children = this.#collectedElements[0].getElements()
    const containerElement = this.#paintorWrapper.containerElement
    appendChildrenToElement(containerElement, children)
    if (this.#global instanceof VirtualDocument)
      finalHtmlCode = containerElement.paintChildren()
    this.#collectedElements = [new ElementsCollector()]
    return finalHtmlCode
  }
finalPaint ( ) { let finalHtmlCode = '' const children = this . #collectedElements [ 0 ] . getElements ( ) const containerElement = this . #paintorWrapper . containerElement appendChildrenToElement ( containerElement , children ) if ( this . #global instanceof VirtualDocument ) finalHtmlCode = containerElement . paintChildren ( ) this . #collectedElements = [ new ElementsCollector ( ) ] return finalHtmlCode }
Browser mode: Append the DOM elements at level 0 to the container element
 <br>
 Server mode: Generate HTML code of the elements at level 0
Browser mode : Append the DOM elements at level 0 to the container element <br > Server mode : Generate HTML code of the elements at level 0
// Reset