I have developed my own HTML editor, which you can access at this link: HTML Editor.
Below is the relevant source code:
const previewer = document.querySelector('iframe'),
editor = document.querySelector('textarea'),
// other variables and functions...
html,
body {
height: 100%;
padding: 0;
margin: 0;
}
// CSS styles...
<header>
<a href="" download="template.html" id="downloadLink" title="Download HTML document">Download</a>
<!-- Other header elements -->
</header>
<main>
<!-- Main content of the editor -->
</main>
<footer>
<!-- Footer content -->
<div id="cccTost"></div>
</footer>
After inspecting the page in Chrome Developer Tools, I found an unexpected div
element at the end of the body
:
<div id="cccTost"></div>
This added div
is not part of my original source code. Can anyone help me understand why it's being inserted into the DOM and how to prevent it?