Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8" />
<title>Translations Test</title>
<style>
div {
margin: 10px auto;
width: 300px
}
p {
margin: 47px 0;
font-size: 21px;
line-height: 2;
}
</style>
</head>
<body>
<div id="host">
Normal DOM content
<div>
<script>
const host = document.getElementById("host");
const root = host.attachShadow({mode: "open"});
root.innerHTML = "<slot></slot>";
</script>
</body>
</html>