Is there anyway to get AngleSharp to not create a full HTML document when parsed a fragment. For example, if I parse:
<title>The Title</title>
I get a full HTML document in DocumentElement.OuterHtml:
<html><head><title>The Title</title></head><body></body></html>
If I parse:
<p>The Paragraph</p>
I get another full HTML document:
<html><head></head><body><p>Hey</p></body></html>
Notice that AngleSharp is smart enough to know where my fragment should go. In one case, it puts it in the HEAD tag, and in the other case, it puts it in the BODY tag.
This is clever, but if I just want the fragment back out, I don't know where to get it. So, I can't just call Body.InnerHtml because depending on the HTML I parsed, my fragment might be in the Head.InnerHtml instead.
Is there a way to get AngleSharp to not create a full document, or is there some other way to get my isolated fragment back out after parsing?