repl.it
@todojs/

01-light-dom

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Light DOM</title>
</head>
<body>
<script>
  customElements.define ('site-name', class extends HTMLElement {
  });
</script>
<site-name><b>www.todojs.com</b></site-name>
</body>
</html>
result
console
?