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?