Leaving out type="html" causes XML parsing, which breaks when the markup contains empty HTML elements that aren’t self-closed, e.g. <img>, <br>, <input>. This is especially problematic if the markup was generated by a Markdown processor (e.g. Marked does not self-close empty HTML elements). Due to this limitation, I think it makes sense to default to HTML parsing.
Related discussion in preact-markdown: laggingreflex/preact-markdown#1 (comment)
Leaving out
type="html"causes XML parsing, which breaks when the markup contains empty HTML elements that aren’t self-closed, e.g.<img>,<br>,<input>. This is especially problematic if the markup was generated by a Markdown processor (e.g. Marked does not self-close empty HTML elements). Due to this limitation, I think it makes sense to default to HTML parsing.Related discussion in preact-markdown: laggingreflex/preact-markdown#1 (comment)