math-ml icon indicating copy to clipboard operation
math-ml copied to clipboard

Polyfill: Copy over attributes on the <math> node

Open lukasbestle opened this issue 7 years ago • 0 comments

Hi Preet,

Thank you for creating this library. It works great as a polyfill!

I use both inline as well as block math elements on my pages. For that, I use the attribute display (an official attribute from the MathML spec) like so and react on it in my CSS:

<math display="block">
...
</math>

Unfortunately, the polyfill currently does not copy over attributes on the root element. I've fixed this in this PR. Let me know in case further changes are needed.

lukasbestle avatar Dec 09 '18 11:12 lukasbestle