wiris / html-integrations

The official JavaScript library for MathType, the leading formula editor and equation writer for the web by Wiris
https://wiris.com/solutions/integrations/html-editors/
MIT License
76 stars 53 forks source link

`<mfenced>` tag is deprecated #1002

Closed DrAliRagab closed 2 weeks ago

DrAliRagab commented 1 month ago

mathType outputs <mfenced> tag which is deprecated and is not supported any more and is not rendered on any modern browser.

see: \<mfenced>

DrAliRagab commented 1 month ago

polyfill: mathml-polyfills/mfenced

carla-at-wiris commented 2 weeks ago

Hello, thank you for writing us!

The MDN article on mfenced states that the mfenced element is "deprecated". You may be wondering why we output "deprecated" MathML. This must be put into perspective: mfenced is "deprecated" inside web pages, i.e. when it's used as an HTML element.

The mfenced attribute can be found in the MathML 4 spec in section 3.3.8. However, it's missing from the MathML Core spec (and also tagged as not-core in MathML 4), which is a subset of MathML intended to be implemented by web browsers.

MathType Web uses the "full" version of MathML (MathML 3, MathML 4) and not MathML Core, therefore these deprecation warnings don't apply. MathType Web only uses MathML as an interchange format for mathematical equations, it's never inserted into the actual page.

To make it short: we're not affected by this "deprecation" warning. We're using MathML, not MathML Core, which is the one missing the mfenced element among other ones.

Any further issues, please feel free to contact us or write an email to our support team at support@wiris.com.