- From: Joe Pea <notifications@github.com>
- Date: Tue, 24 Oct 2017 16:34:58 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 24 October 2017 23:35:21 UTC
Okay, maybe it's parsing.
```js
const d = document.createElement('div')
d.innerHTML = `
<table>
<tr><div>foo</div><td></td></tr>
</table>
`
d.innerHTML
```
output:
```
"
<div>foo</div><table>
<tbody><tr><td></td></tr>
</tbody></table>
"
```
That's much worse than what I'm doing here.
But you're right, I can achieve this without setting an attribute value, but what problems would it cause if I do?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/522#issuecomment-339167836
Received on Tuesday, 24 October 2017 23:35:21 UTC