Re: [w3c/editing] using `execCommand` outside of <body> (Issue #405)

I did find a way to do this:

```
<!DOCTYPE html>
<html>
<head></head>
<body>
  <h1>body</h1>
</body>
<script>
  const dom = document.createElement('h2')
  dom.innerHTML = "outside body"
  dom.contentEditable = true
  document.lastChild.appendChild(dom)
</script>
</html>
```

The question is whether this is something that is actually needed for anything.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/405#issuecomment-1210293494
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/405/1210293494@github.com>

Received on Wednesday, 10 August 2022 07:49:15 UTC