Message from JavaScript discussions

November 2018

— Https://github.com/KenjiBaheux/portals/blob/master/explainer.md

— 

I found a solution for my problem. The DOMParser interface allows one to parse HTML into a document. That’s precisely what I need.

— In the case of an HTML document, you can also replace portions of the DOM with new DOM trees built from HTML by setting the value of the Element.innerHTML and outerHTML properties.

Message permanent page

— RenderPoint.innerHTML = stringWithHtmlNoNeedToParse;

— Well, innerHTML will have to parse the HTML.

— With innerHTML, I would need an element that I hook my markup into. That won’t work when the markup is <html>...</html>.

Message permanent page

— Add comment markers with the parts you need, and split() them out

— <html>...trash...<!--INEED-->gold<!--INEED-->...trash...</html>

— I need virtually everything in the markup.

— 😭🤤

— Https://youtu.be/ymNFyxvIdaM

— Https://youtu.be/Vnoz5uBEWOA