* feat: pass matching mime type to xmldom If the `Content-Type` header contains one of the mime types supported by `DOMParser`, the first matching mime type will be used instead of `text/xml`. The default is still `text/xml` for cases when the header is not present or none of the mime types from the list are present. * factor out and add tests --------- Co-authored-by: chris48s <git@chris-shaw.dev>
4.4 KiB
4.4 KiB