- From: Pierre-Yves Gérardy <notifications@github.com>
- Date: Wed, 08 Feb 2023 06:57:20 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/issues/1154@github.com>
Now that all major engines support MathML once again, it would be nice to have the ability to parse it from JS without `.innerHTML` hacks. Could the list of supported mime types for `DOMParser.prototype.parseFromString` be updated to accept MathML. I suppose that the go-to type would be `application/mathml+xml` which is what the [W3C uses](https://w3c.github.io/mathml-docs/mathml-media-types/#media-type-choosing) in the generic case. The [Wikidata page about MathML](https://www.wikidata.org/wiki/Q823982#:~:text=MIME%20type-,text/mathml,-edit) lists `text/mathml` which is mentioned in older standards. It is terser and more memorable, but I suppose it won't fly... Using `text/xml` is [not enough](https://flems.io/#0=N4IgZglgNgpgziAXAbVAOwIYFsZJAOgAsAXLKEAGhAGMB7NYmBvAHgCMBXY4+gAggAmAXh4BzUbAB8AHTS9eYiTFksA9J271JLARABu-YcQwAnUTGIy5vFat17JlEHBixqxCPQSIQAJkS+AMwgAL4U6Ni4PlimANYcAA74AFYIVHQMTMR4MAAeCbQmxLwZcMUxJvEJvEK8AAYsMcSEvLpwCVAYAJ5C0iBsULTUsX1W8o3GAzBj8rwTJjOzc1jEAotLy3CJ6xvLJrQA7ju7y7SSABRqWGeyJxuNEJIYV4+3d7ONZwDUVzfW78tHmwXsddp9JABKX6gj6qLD7I5vO6NNCSXxXVFI+5wrYJY5XVb4lZrLFLcFCaGkuZwwlUiYk-73LC4mHjLCPaggqlkrCo9FwzGMsk47bc06SH5wv7I3mSAAsGJh4MAo0SUoUfa4XNUysAmDDUVnLVEARkVYrZfLN6vGcN1+qV7KeXOtgMkwLhrxd4KhUvxNIZwpWCyx8yJtK9zNFLrZj2eHsNKLRVuRIrxYvBks16dl-Nl2djzplQMLJwz2tLkbT0dd7sd5qNSYFStTfuJYYDFbOFN9dP97YdLPrD0knPjQ5zydLLez33LYInTfzTrHEeLK7BfZDNODjNDdLb2cH1eHcbrx4Xea904js57EaPAOHtc9j4vgpTldb4fn387km7WbqgSHY8r+84Pu8w6jmer6WouV6fr2B67tuMwEhgUxWFcGDNJIdROC4bgeF4eAAAyIMaACcoThCAmA4HgKRpDQ9CMMwPgQFgBRFLwwAVFUIS8LqtBYDYBBwnEiRMX0siyLAxQQGgaAwCYAASAAqACyAAyNRCRgUAuLIiiwPg9DUFAEDDHp5wQjUki8W8inKWpWm6bUACEzkqRpOlOWAvDnN5rk6XZxhmBY+DBb57m8PxiRvK4LiOYy4XmMQUVKT5bl6TJIBYmlkUYAkCRMAI5zKQcvAACIAPKaQACqYLgmLZ+AJM1MAAGL7FgADKxAmIpojnPFCQUGJjC5MQqi5GQfQQvgkAmGUADChDQAIdkbG8ISyHtaDGaY6X4MVpVoOVlU1fVTUrSpbUdXdPUiQNQ1oCNY0TX0U0zXNUALUtEArcQ62bdtsmHWgBGuDA7ieGg3ggMa-gAKwowAtMjiAo9RIQALohEAA) to get MathML to render -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1154 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1154@github.com>
Received on Wednesday, 8 February 2023 14:57:32 UTC