Created
September 27, 2019 13:36
-
-
Save panphora/2b3930eea77b6e3232d1117921a948d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- starting html: --> | |
<div class="elements-to-be-parsed"> | |
<pre> | |
<div data-o-type="list"></div> | |
</pre> | |
<pre> | |
<div data-o-type="object"></div> | |
</pre> | |
</div> | |
<!-- generated html: --> | |
<div class="elements-to-be-parsed"> | |
<div class="output-container" style="display: flex"> | |
<pre> | |
<div data-o-type="object"></div> | |
</pre> | |
<pre> | |
{} | |
</pre> | |
<div style="display:none;" class="rendered"><div data-o-type="object"></div></div> | |
</div> | |
<div class="output-container" style="display: flex"> | |
<pre> | |
<div data-o-type="object"></div> | |
</pre> | |
<pre> | |
{} | |
</pre> | |
<div style="display:none;" class="rendered"><div data-o-type="object"></div></div> | |
</div> | |
</div> | |
<script> | |
renderedElemString = `<div style="display:none;" class="rendered">${innerHTMLFromPre}</div>` | |
document.querySelector(".elements-to-be-parsed").children; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment