compat.ts — vue Source File
Architecture documentation for compat.ts, a typescript file in the vue codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 9fd6b02d_5cf9_77f2_70a2_65f3e9ed4399["compat.ts"] 90a2398a_1498_3263_c62e_0c064dd2c9b3["index"] 9fd6b02d_5cf9_77f2_70a2_65f3e9ed4399 --> 90a2398a_1498_3263_c62e_0c064dd2c9b3 04498845_3cc1_e86f_9070_0c7b23b88f7c["runtime-with-compiler.ts"] 04498845_3cc1_e86f_9070_0c7b23b88f7c --> 9fd6b02d_5cf9_77f2_70a2_65f3e9ed4399 style 9fd6b02d_5cf9_77f2_70a2_65f3e9ed4399 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { inBrowser } from 'core/util/index'
// check whether current browser encodes a char inside attribute values
let div
function getShouldDecode(href: boolean): boolean {
div = div || document.createElement('div')
div.innerHTML = href ? `<a href="\n"/>` : `<div a="\n"/>`
return div.innerHTML.indexOf(' ') > 0
}
// #3663: IE encodes newlines inside attribute values while other browsers don't
export const shouldDecodeNewlines = inBrowser ? getShouldDecode(false) : false
// #6828: chrome encodes content in a[href]
export const shouldDecodeNewlinesForHref = inBrowser
? getShouldDecode(true)
: false
Domain
Subdomains
Functions
Dependencies
- index
Imported By
Source
Frequently Asked Questions
What does compat.ts do?
compat.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain, Instance subdomain.
What functions are defined in compat.ts?
compat.ts defines 1 function(s): getShouldDecode.
What does compat.ts depend on?
compat.ts imports 1 module(s): index.
What files import compat.ts?
compat.ts is imported by 1 file(s): runtime-with-compiler.ts.
Where is compat.ts in the architecture?
compat.ts is located at src/platforms/web/util/compat.ts (domain: VueCore, subdomain: Instance, directory: src/platforms/web/util).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free