Home / Function/ getOuterHTML() — vue Function Reference

getOuterHTML() — vue Function Reference

Architecture documentation for the getOuterHTML() function in runtime-with-compiler.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  7b793d8b_1f75_0bdc_7beb_4292960428ba["getOuterHTML()"]
  04498845_3cc1_e86f_9070_0c7b23b88f7c["runtime-with-compiler.ts"]
  7b793d8b_1f75_0bdc_7beb_4292960428ba -->|defined in| 04498845_3cc1_e86f_9070_0c7b23b88f7c
  83cfc556_24cd_7f8e_f154_30d3e26dcdba["$mount()"]
  83cfc556_24cd_7f8e_f154_30d3e26dcdba -->|calls| 7b793d8b_1f75_0bdc_7beb_4292960428ba
  style 7b793d8b_1f75_0bdc_7beb_4292960428ba fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/runtime-with-compiler.ts lines 98–106

function getOuterHTML(el: Element): string {
  if (el.outerHTML) {
    return el.outerHTML
  } else {
    const container = document.createElement('div')
    container.appendChild(el.cloneNode(true))
    return container.innerHTML
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getOuterHTML() do?
getOuterHTML() is a function in the vue codebase, defined in src/platforms/web/runtime-with-compiler.ts.
Where is getOuterHTML() defined?
getOuterHTML() is defined in src/platforms/web/runtime-with-compiler.ts at line 98.
What calls getOuterHTML()?
getOuterHTML() is called by 1 function(s): $mount.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free