Closed loisatwood closed 7 years ago
Use XHTML's mime type for DOMParser, i.e.
DOMParser
parseFromString('<div>example</div>','application/xhtml+xml');
So handle HTML, XHTML and XML separately with a second ternary expression and I'll merge. It's good stuff.
Use XHTML's mime type for
DOMParser
, i.e.