Glint types <math> as Element. It should be the more specific MathMlElement.
This is an issue in some cases. E.g. Element does not implement ElementCSSInlineStyle, which MathMlElement does. This breaks usage of ember-style-modifier on <math> elements as documented by this failing test: https://github.com/jelhan/ember-style-modifier/pull/237
Glint types
<math>
asElement
. It should be the more specificMathMlElement
.This is an issue in some cases. E.g.
Element
does not implementElementCSSInlineStyle
, whichMathMlElement
does. This breaks usage of ember-style-modifier on<math>
elements as documented by this failing test: https://github.com/jelhan/ember-style-modifier/pull/237There is already a special handing for
SVGElement
in Glint: https://github.com/typed-ember/glint/blob/01b8deb15cb4c29652bcc336cd0782d3b6105bda/packages/template/-private/dsl/types.d.ts#L7-L17 This needs to be extended to coverMathMlElement
as well.