Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

How do I use innerHTML/outerHTML correctly? Is this some kind of bug?

$
0
0

I wote a document with html, head, title, script, and style tags, then attempted to reference the outerHTML of elements on the page. For some reason I cannot figure out, the output of the returned string is modified from its original state:

<html><head>

other tags...

<body>

content

property reference added new line here

</body></html>

instead of:

<html>

<head>

...

<body>

content

</body>

</html>

How do I fix this issue?


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>