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
  af06f072_6507_4d93_8f7d_dee3841478ac["getOuterHTML()"]
  cc8f669d_3f4a_79f9_7f19_22ea440b9b3f["$mount()"]
  cc8f669d_3f4a_79f9_7f19_22ea440b9b3f -->|calls| af06f072_6507_4d93_8f7d_dee3841478ac
  style af06f072_6507_4d93_8f7d_dee3841478ac 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.
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