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

@masayuki-nakano  I am not following. Can you give me an example of how I could try to edit something outside of the `<body>` using only user input? I tried with this HTML:

```html
<!DOCTYPE html>
<html>
<head></head>
<p>cellow</p>
<body contenteditable="true">
<h1>hello</h1>
</body>
<h2>mellow</h2>
</html>
```

But that is being normalized into this in Chrome:

```html
<!DOCTYPE html>
<html>
<head></head>
<body contenteditable="true">
<p>cellow</p>
<h1>hello</h1>
<h2>mellow</h2>
</body>
</html>
```

And this in Firefox:

```html
<!DOCTYPE html>
<html>
<head></head>
<body>
<p>cellow</p>
<h1>hello</h1>
<h2>mellow</h2>
</body>
</html>
```



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

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

Received on Wednesday, 10 August 2022 06:38:53 UTC